mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-09 13:51:45 +08:00
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:
committed by
Alibek Omarov
parent
661b53d0b3
commit
37255354d4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user