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:
JTE 2015-05-21 19:55:22 -04:00
parent dfa8ac7ccb
commit 6ee50e803b

View file

@ -2786,7 +2786,9 @@ boolean P_SetupLevel(boolean skipprecip)
}
P_PreTicker(2);
#ifdef HAVE_BLUA
P_MapStart();
LUAh_MapLoad();
P_MapEnd();
#endif
}