]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix compile error for VM_getimagesize
authorSamual <samual@xonotic.org>
Tue, 3 Jan 2012 19:21:00 +0000 (14:21 -0500)
committerSamual <samual@xonotic.org>
Tue, 3 Jan 2012 19:21:00 +0000 (14:21 -0500)
prvm_cmds.c

index f3f38d625dbe9cd4e10cc11521d5677a9e4e5f4c..82ffa58a80cb6b70f61b114f5de67389a36bfda0 100644 (file)
@@ -3911,7 +3911,7 @@ void VM_getimagesize(prvm_prog_t *prog)
        VM_CheckEmptyString(prog, p);
 
        pic = Draw_CachePic_Flags (p, CACHEPICFLAG_NOTPERSISTENT);
-       if( Draw_CachePic_Flags(s, 0)->tex == r_texture_notexture )
+       if( Draw_CachePic_Flags(p, 0)->tex == r_texture_notexture )
        {
                PRVM_G_VECTOR(OFS_RETURN)[0] = 0;
                PRVM_G_VECTOR(OFS_RETURN)[1] = 0;