Various: Fixed obscure crashes on Mac

There were a couple of out-of-range/post-free accesses going on, which caused the Mac
build to crash when optimisations were turned on.
This commit is contained in:
Jonathan Poncelet
2019-07-12 16:13:03 +01:00
committed by Alibek Omarov
parent 661b53d0b3
commit 37255354d4
3 changed files with 6 additions and 3 deletions

View File

@@ -252,7 +252,7 @@ Loads a model into the cache
model_t *Mod_LoadModel( model_t *mod, qboolean crash )
{
char tempname[MAX_QPATH];
long length = 0;
fs_offset_t length = 0;
qboolean loaded;
byte *buf;
model_info_t *p;