Abide by the rules for reference objects
It fixes crashes on certain maps (also official).
It bases on 3ec0b1218d
This commit is contained in:
@@ -103,7 +103,7 @@ void mapmodelreset()
|
||||
if(execcontext==IEXC_MAPCFG) mapmodels.shrink(0);
|
||||
}
|
||||
|
||||
mapmodelinfo &getmminfo(int i) { return mapmodels.inrange(i) ? mapmodels[i] : *(mapmodelinfo *)0; }
|
||||
mapmodelinfo *getmminfo(int i) { return mapmodels.inrange(i) ? &mapmodels[i] : NULL; }
|
||||
|
||||
COMMAND(mapmodel, "iiiss");
|
||||
COMMAND(mapmodelreset, "");
|
||||
|
||||
Reference in New Issue
Block a user