Fixed bug FS#48

Fixed buf FS#48 where using /drop while beeing dead resulted in a crash.
This commit is contained in:
Walter Julius Hennecke 2013-08-01 20:45:57 +02:00
parent 6578cfdd51
commit 6f84873e50

View file

@ -1815,7 +1815,7 @@ void ThrowWeapon( gentity_t *ent, char *txt )
return;
}
if ( ps->weapon == WP_1 || ( ucmd->buttons & BUTTON_ATTACK )) {
if ( ps->weapon == WP_0 || ps->weapon == WP_1 || ( ucmd->buttons & BUTTON_ATTACK )) {
return;
}