mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-24 19:52:08 +00:00
Fix segfault due to leftover ztargetfocus when switching maps
This commit is contained in:
parent
14606ebe30
commit
bc0735c027
1 changed files with 4 additions and 0 deletions
|
@ -1867,6 +1867,10 @@ void G_DoLoadLevel(boolean resetplayer)
|
|||
if (gamestate == GS_INTERMISSION)
|
||||
Y_EndIntermission();
|
||||
|
||||
// clear the target on map change, since the object will be invalidated
|
||||
P_SetTarget(&ticcmd_ztargetfocus[0], NULL);
|
||||
P_SetTarget(&ticcmd_ztargetfocus[1], NULL);
|
||||
|
||||
// cleanup
|
||||
if (titlemapinaction == TITLEMAP_LOADING)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue