Fixed a potential NULL assignment in FOptionMenuItemSafeCommand::Activate

This commit is contained in:
nashmuhandes 2016-04-14 22:29:59 +08:00 committed by Christoph Oelckers
parent 6bfdd10a5c
commit a30eb4d709

View file

@ -133,9 +133,9 @@ public:
} }
FString FullString; 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; return true;
} }
}; };