mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-12 23:27:42 +08:00
engine: fix some possible off by one errors
This commit is contained in:
@@ -2791,7 +2791,7 @@ static void Mod_LoadTexInfo( model_t *mod, dbspmodel_t *bmod )
|
||||
out->vecs[j][k] = in->vecs[j][k];
|
||||
|
||||
miptex = in->miptex;
|
||||
if( miptex < 0 || miptex > mod->numtextures )
|
||||
if( miptex < 0 || miptex >= mod->numtextures )
|
||||
miptex = 0; // this is possible?
|
||||
out->texture = mod->textures[miptex];
|
||||
out->flags = in->flags;
|
||||
|
||||
Reference in New Issue
Block a user