From: divverent Date: Tue, 15 Sep 2009 12:26:04 +0000 (+0000) Subject: use correct type to fix a warning :P X-Git-Tag: xonotic-v0.1.0preview~1433 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=51616b3baeaf8c2e8b5f4ba4d64fed6f7f1303e5;p=xonotic%2Fdarkplaces.git use correct type to fix a warning :P git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9199 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_main.c b/cl_main.c index 799010d2..926c65a9 100644 --- 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];