Condig style.

This commit is contained in:
Christian Speckner 2020-11-29 11:09:12 +01:00
parent ebbec177f6
commit cce86f453c
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>();