]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
use correct type to fix a warning :P
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 15 Sep 2009 12:26:04 +0000 (12:26 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 15 Sep 2009 12:26:04 +0000 (12:26 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9199 d7cf8633-e32d-0410-b094-e92efae38249

cl_main.c

index 799010d240a4808598f096f437607edc7c5c3ae8..926c65a947d500b662b1d0d1c542a26b179e1f42 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -1231,7 +1231,7 @@ void CL_UpdateViewModel(void)
        ent->state_previous = ent->state_current;
        ent->state_current = defaultstate;
        ent->state_current.time = cl.time;
-       ent->state_current.number = (unsigned int)-1;
+       ent->state_current.number = (unsigned short)-1;
        ent->state_current.active = true;
        ent->state_current.modelindex = cl.stats[STAT_WEAPON];
        ent->state_current.frame = cl.stats[STAT_WEAPONFRAME];