1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 09:23:06 +08:00

Add missing rulesetID check for global action matching

This commit is contained in:
Dean Herbert 2021-06-18 17:12:01 +09:00
parent d06e52505a
commit d5a1524eb0

View File

@ -32,7 +32,7 @@ namespace osu.Game.Input
using (var context = realmFactory.GetForRead())
{
foreach (var action in context.Realm.All<RealmKeyBinding>().Where(b => (GlobalAction)b.ActionInt == globalAction))
foreach (var action in context.Realm.All<RealmKeyBinding>().Where(b => b.RulesetID == null && (GlobalAction)b.ActionInt == globalAction))
{
string str = action.KeyCombination.ReadableString();