mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 14:47:18 +08:00
Add assert on storing to database
This commit is contained in:
parent
deabce7140
commit
a00f226ab3
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Input.Bindings;
|
using osu.Framework.Input.Bindings;
|
||||||
using osu.Framework.Platform;
|
using osu.Framework.Platform;
|
||||||
@ -105,8 +106,7 @@ namespace osu.Game.Input
|
|||||||
{
|
{
|
||||||
var dbKeyBinding = (DatabasedKeyBinding)keyBinding;
|
var dbKeyBinding = (DatabasedKeyBinding)keyBinding;
|
||||||
|
|
||||||
if (dbKeyBinding.RulesetID != null && !CheckValidForGameplay(keyBinding.KeyCombination))
|
Debug.Assert(dbKeyBinding.RulesetID == null || CheckValidForGameplay(keyBinding.KeyCombination));
|
||||||
return;
|
|
||||||
|
|
||||||
Refresh(ref dbKeyBinding);
|
Refresh(ref dbKeyBinding);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user