mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 12:42:54 +08:00
Fix reset function not running in correct order
This commit is contained in:
parent
9e20a02c0a
commit
5fc68aabbf
@ -32,11 +32,6 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
protected override void Prepare(bool reset = false)
|
protected override void Prepare(bool reset = false)
|
||||||
{
|
{
|
||||||
Connection.CreateTable<BeatmapMetadata>();
|
|
||||||
Connection.CreateTable<BeatmapDifficulty>();
|
|
||||||
Connection.CreateTable<BeatmapSetInfo>();
|
|
||||||
Connection.CreateTable<BeatmapInfo>();
|
|
||||||
|
|
||||||
if (reset)
|
if (reset)
|
||||||
{
|
{
|
||||||
Connection.DropTable<BeatmapMetadata>();
|
Connection.DropTable<BeatmapMetadata>();
|
||||||
@ -45,6 +40,11 @@ namespace osu.Game.Beatmaps
|
|||||||
Connection.DropTable<BeatmapInfo>();
|
Connection.DropTable<BeatmapInfo>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Connection.CreateTable<BeatmapMetadata>();
|
||||||
|
Connection.CreateTable<BeatmapDifficulty>();
|
||||||
|
Connection.CreateTable<BeatmapSetInfo>();
|
||||||
|
Connection.CreateTable<BeatmapInfo>();
|
||||||
|
|
||||||
deletePending();
|
deletePending();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user