Detach at point of usage, rather than point of retrieval

This commit is contained in:
Dean Herbert
2021-01-11 19:47:51 +09:00
parent 536e7229d0
commit 8f9b19a76e
2 changed files with 6 additions and 4 deletions

View File

@ -5,6 +5,7 @@ using System;
using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Framework.Input.Bindings;
using osu.Game.Database;
using osu.Game.Rulesets;
namespace osu.Game.Input.Bindings
@ -63,7 +64,7 @@ namespace osu.Game.Input.Bindings
// fallback to defaults instead.
KeyBindings = DefaultKeyBindings;
else
KeyBindings = store.Query(ruleset?.ID, variant);
KeyBindings = store.Query(ruleset?.ID, variant).Detach();
}
}
}