Fix more wrong code (constant arrays not declared as "static const)
This fixes a crash in recent GZDoom devbuilds.
This commit is contained in:
parent
aee46bfc3c
commit
5bac1614c4
3 changed files with 6 additions and 6 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue