From 02b182a260ec9262b681e6ede07ca225ea45edc0 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 22 Feb 2009 13:46:48 +0000 Subject: [PATCH] Fix a crash with halflife sprites. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3127 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/gl/gl_model.c b/engine/gl/gl_model.c index a96ccb68b..4c6bc99d1 100644 --- a/engine/gl/gl_model.c +++ b/engine/gl/gl_model.c @@ -3194,7 +3194,7 @@ qboolean GLMod_LoadSpriteModel (model_t *mod, void *buffer) mod->mins[2] = -psprite->maxheight/2; mod->maxs[2] = psprite->maxheight/2; - if (pin->version == SPRITEHL_VERSION) + if (version == SPRITEHL_VERSION) { int i; short *numi = (short*)(pin+1);