summaryrefslogtreecommitdiff
path: root/src/r_things.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/r_things.c')
-rw-r--r--src/r_things.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/r_things.c b/src/r_things.c
index bdcdefd6..68f4b2fe 100644
--- a/src/r_things.c
+++ b/src/r_things.c
@@ -504,7 +504,7 @@ void R_ProjectSprite (mobj_t* thing)
// decide which patch to use for sprite relative to player
#ifdef RANGECHECK
- if (thing->sprite >= (unsigned int) numsprites)
+ if ((unsigned int) thing->sprite >= (unsigned int) numsprites)
I_Error ("R_ProjectSprite: invalid sprite number %i ",
thing->sprite);
#endif