aboutsummaryrefslogtreecommitdiff
path: root/primedev/scripts
diff options
context:
space:
mode:
authorJan <sentrycraft123@gmail.com>2024-06-19 14:40:23 +0200
committerGitHub <noreply@github.com>2024-06-19 14:40:23 +0200
commit8e56367314315c53c8c7bede25e5900da9c9e31c (patch)
tree162f1897d36594a2a96a37bd8f6fbd50aa346861 /primedev/scripts
parent7f3fe6c9b4170eee20e3c8002769a6528da10b62 (diff)
downloadNorthstarLauncher-1.25.1-rc2.tar.gz
NorthstarLauncher-1.25.1-rc2.zip
Add missing case for switch cases in JSON deserialization function (#712)v1.25.1-rc2v1.25.1
RapidJSON switch gets a new case for null, where we do nothing. Future enum values would result in a new warning.
Diffstat (limited to 'primedev/scripts')
-rw-r--r--primedev/scripts/scriptjson.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/primedev/scripts/scriptjson.cpp b/primedev/scripts/scriptjson.cpp
index 06bda6f4..8959bf47 100644
--- a/primedev/scripts/scriptjson.cpp
+++ b/primedev/scripts/scriptjson.cpp
@@ -42,6 +42,8 @@ DecodeJsonArray(HSquirrelVM* sqvm, rapidjson::GenericValue<rapidjson::UTF8<char>
g_pSquirrel<context>->pushinteger(sqvm, itr.GetInt());
g_pSquirrel<context>->arrayappend(sqvm, -2);
break;
+ case rapidjson::kNullType:
+ break;
}
}
}
@@ -92,6 +94,8 @@ DecodeJsonTable(HSquirrelVM* sqvm, rapidjson::GenericValue<rapidjson::UTF8<char>
}
g_pSquirrel<context>->newslot(sqvm, -3, false);
break;
+ case rapidjson::kNullType:
+ break;
}
}
}