From 5fc68aabbfdba8dd915081f8329c80cdc6764fbe Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 26 Jul 2017 17:14:38 +0900 Subject: [PATCH] Fix reset function not running in correct order --- osu.Game/Beatmaps/BeatmapDatabase.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/osu.Game/Beatmaps/BeatmapDatabase.cs b/osu.Game/Beatmaps/BeatmapDatabase.cs index 2e8e5da65b..ca607c87eb 100644 --- a/osu.Game/Beatmaps/BeatmapDatabase.cs +++ b/osu.Game/Beatmaps/BeatmapDatabase.cs @@ -32,11 +32,6 @@ public BeatmapDatabase(SQLiteConnection connection) : base(connection) protected override void Prepare(bool reset = false) { - Connection.CreateTable(); - Connection.CreateTable(); - Connection.CreateTable(); - Connection.CreateTable(); - if (reset) { Connection.DropTable(); @@ -45,6 +40,11 @@ protected override void Prepare(bool reset = false) Connection.DropTable(); } + Connection.CreateTable(); + Connection.CreateTable(); + Connection.CreateTable(); + Connection.CreateTable(); + deletePending(); }