Fix more wrong code (constant arrays not declared as "static const)

This fixes a crash in recent GZDoom devbuilds.
This commit is contained in:
Mari the Deer 2022-02-14 01:22:58 +01:00
commit 5bac1614c4
3 changed files with 6 additions and 6 deletions

View file

@ -399,7 +399,7 @@ extend Class SWWMHandler
private ui bool CheatInput( InputEvent e )
{
// cheat code handling
String cht[] =
static const String cht[] =
{
"swwmlodsofemone", "swwmdeeplore", "swwmfroggygang", "swwmforgetaboutit",
"swwmmisterproper", "swwmstinky",
@ -412,7 +412,7 @@ extend Class SWWMHandler
"swwmmarioisaweenie", "swwmpunish", "swwmboingball",
"swwmgassy", "swwmiamsuperman", "swwmtouchstone"
};
String cmd[] =
static const String cmd[] =
{
"swwmmoneycheat", "swwmlorecheat", "swwmfroggycheat", "swwmamnesiacheat",
"swwmjanitorcheat", "swwmsewercountcheat",