mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
Wrapped Lua MapLoad hook in P_MapStart / P_MapEnd.
This fixes a crash if a script tries to use a MapLoad hook to immediately edit the map in some way the moment it finishes loading.
This commit is contained in:
parent
dfa8ac7ccb
commit
6ee50e803b
1 changed files with 2 additions and 0 deletions
|
@ -2786,7 +2786,9 @@ boolean P_SetupLevel(boolean skipprecip)
|
|||
}
|
||||
P_PreTicker(2);
|
||||
#ifdef HAVE_BLUA
|
||||
P_MapStart();
|
||||
LUAh_MapLoad();
|
||||
P_MapEnd();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue