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:
1 parent
dfa8ac7ccb
commit
6ee50e803b
1 file changed
+2
@@ -2786,7 +2786,9 @@ boolean P_SetupLevel(boolean skipprecip)
|
||||
}
|
||||
P_PreTicker(2);
|
||||
#ifdef HAVE_BLUA
|
||||
P_MapStart();
|
||||
LUAh_MapLoad();
|
||||
P_MapEnd();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user