1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 06:33:20 +08:00

Fix reset function not running in correct order

This commit is contained in:
Dean Herbert 2017-07-26 17:14:38 +09:00
parent 9e20a02c0a
commit 5fc68aabbf

View File

@ -32,11 +32,6 @@ namespace osu.Game.Beatmaps
protected override void Prepare(bool reset = false)
{
Connection.CreateTable<BeatmapMetadata>();
Connection.CreateTable<BeatmapDifficulty>();
Connection.CreateTable<BeatmapSetInfo>();
Connection.CreateTable<BeatmapInfo>();
if (reset)
{
Connection.DropTable<BeatmapMetadata>();
@ -45,6 +40,11 @@ namespace osu.Game.Beatmaps
Connection.DropTable<BeatmapInfo>();
}
Connection.CreateTable<BeatmapMetadata>();
Connection.CreateTable<BeatmapDifficulty>();
Connection.CreateTable<BeatmapSetInfo>();
Connection.CreateTable<BeatmapInfo>();
deletePending();
}