Skip to content

Commit

Permalink
Sys: Critical sections return false if section is undefined
Browse files Browse the repository at this point in the history
There is some cases where the fastRestart/mapRestart will clear the critical sections but the VM still runs for 1 frame and tries to enter critical sections eventho the VM is shutdown on the next frame
  • Loading branch information
Iswenzz committed Jan 24, 2023
1 parent e3c196f commit 0c220f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void GScr_EnterCriticalSection()
}
if (!section)
{
Plugin_Scr_Error(fmt("EnterCriticalSection(): section %s not found.", name));
Plugin_Scr_AddBool(qfalse);
return;
}
if (!section->locked)
Expand Down

0 comments on commit 0c220f7

Please sign in to comment.