- fixed freeze with StartSlideshow called for undefined intermission

https://forum.zdoom.org/viewtopic.php?t=69079
This commit is contained in:
alexey.lysiuk 2020-06-23 10:15:15 +03:00
parent 7e25e04257
commit ece526a99c

View file

@ -977,7 +977,11 @@ void F_StartIntermission(FIntermissionDescriptor *desc, bool deleteme, uint8_t s
void F_StartIntermission(FName seq, uint8_t state) void F_StartIntermission(FName seq, uint8_t state)
{ {
FIntermissionDescriptor **pdesc = IntermissionDescriptors.CheckKey(seq); FIntermissionDescriptor **pdesc = IntermissionDescriptors.CheckKey(seq);
if (pdesc != NULL) if (pdesc == nullptr)
{
gameaction = ga_nothing;
}
else
{ {
F_StartIntermission(*pdesc, false, state); F_StartIntermission(*pdesc, false, state);
} }