mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
Fixed a potential NULL assignment in FOptionMenuItemSafeCommand::Activate
This commit is contained in:
parent
6bfdd10a5c
commit
a30eb4d709
1 changed files with 2 additions and 2 deletions
|
@ -133,9 +133,9 @@ public:
|
|||
}
|
||||
|
||||
FString FullString;
|
||||
FullString.Format(TEXTCOLOR_WHITE "%s" TEXTCOLOR_NORMAL "\n\n" "%s", actionLabel, msg);
|
||||
FullString.Format(TEXTCOLOR_WHITE "%s" TEXTCOLOR_NORMAL "\n\n" "%s", actionLabel != NULL ? actionLabel : "", msg);
|
||||
|
||||
if (msg && actionLabel && FullString) M_StartMessage(FullString, 0);
|
||||
if (msg && FullString) M_StartMessage(FullString, 0);
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue