mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +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;
|
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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue