"Wrong code" fixes from devel. Fixes crash in recent GZDoom devbuilds.

This commit is contained in:
Mari the Deer 2022-02-14 01:27:02 +01:00
commit faa6ec4fe2
3 changed files with 7 additions and 7 deletions

View file

@ -400,7 +400,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",
@ -413,7 +413,7 @@ extend Class SWWMHandler
"swwmmarioisaweenie", "swwmpunish", "swwmboingball",
"swwmgassy", "swwmiamsuperman", "swwmtouchstone"
};
String cmd[] =
static const String cmd[] =
{
"swwmmoneycheat", "swwmlorecheat", "swwmfroggycheat", "swwmamnesiacheat",
"swwmjanitorcheat", "swwmsewercountcheat",