From: divverent Date: Thu, 29 Nov 2007 21:48:27 +0000 (+0000) Subject: an x for an i... fixed (this bug made sprites disappear completely) X-Git-Tag: xonotic-v0.1.0preview~2746 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cfa4d197222dc7f2d52aa61fb0865f010b676108;p=xonotic%2Fdarkplaces.git an x for an i... fixed (this bug made sprites disappear completely) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7738 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_sprite.c b/model_sprite.c index ed618b53..2cdb741a 100644 --- a/model_sprite.c +++ b/model_sprite.c @@ -197,10 +197,10 @@ static void Mod_Sprite_SharedSetup(const unsigned char *datapointer, int version { for (x = 0;x < width*height;x++) { - pixels[i*4+2] = datapointer[i*4+0]; - pixels[i*4+1] = datapointer[i*4+1]; - pixels[i*4+0] = datapointer[i*4+2]; - pixels[i*4+3] = datapointer[i*4+3]; + pixels[x*4+2] = datapointer[x*4+0]; + pixels[x*4+1] = datapointer[x*4+1]; + pixels[x*4+0] = datapointer[x*4+2]; + pixels[x*4+3] = datapointer[x*4+3]; } } else //if (version == SPRITEHL_VERSION || version == SPRITE_VERSION)