]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix the compiler error fo' reals this time
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 20 Feb 2012 19:36:01 +0000 (19:36 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 20 Feb 2012 19:36:01 +0000 (19:36 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11715 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index def4b1a3b2537daef17065a1b71292c4932963b4..23fa6d48504e31372ab7e6d607d59acf91380ca6 100644 (file)
@@ -3718,7 +3718,7 @@ void Mod_Q1BSP_Load(dp_model_t *mod, void *buffer, void *bufferend)
        unsigned char *datapointer;
        sizebuf_t sb;
 
-       MSG_InitReadBuffer(&sb, (unsigned char *)buffer, bufferend - buffer);
+       MSG_InitReadBuffer(&sb, (unsigned char *)buffer, (unsigned char *)bufferend - (unsigned char *)buffer);
 
        mod->type = mod_brushq1;