This commit is contained in:
thrust26 2020-12-01 18:18:52 +01:00
commit 9dd0215fed
1 changed files with 2 additions and 2 deletions

View File

@ -58,8 +58,8 @@ namespace {
int deserializeModkeyMask(json serializedMask)
{
if (serializedMask.is_null()) return StellaMod::KBDM_NONE;
if (!serializedMask.is_array()) return serializedMask.get<StellaMod>();
if(serializedMask.is_null()) return StellaMod::KBDM_NONE;
if(!serializedMask.is_array()) return serializedMask.get<StellaMod>();
int mask = 0;
for(const json& mod: serializedMask) mask |= mod.get<StellaMod>();