Fixed a minor typo in SurfaceSkin validity check.

This commit is contained in:
Jordon Moss 2016-07-15 23:54:32 -03:00 committed by Christoph Oelckers
parent b3b2eb42c6
commit 8bbc04a46f

View file

@ -708,7 +708,7 @@ void gl_InitModels()
sc.ScriptError("Too many models in %s", smf.type->TypeName.GetChars()); sc.ScriptError("Too many models in %s", smf.type->TypeName.GetChars());
} }
if (surface<0 || index >= MD3_MAX_SURFACES) if (surface<0 || surface >= MD3_MAX_SURFACES)
{ {
sc.ScriptError("Invalid MD3 Surface %d in %s", MD3_MAX_SURFACES, smf.type->TypeName.GetChars()); sc.ScriptError("Invalid MD3 Surface %d in %s", MD3_MAX_SURFACES, smf.type->TypeName.GetChars());
} }