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 1c7ed5bde0
commit 791a9cf238
1 changed files with 1 additions and 1 deletions

View File

@ -1817,7 +1817,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;
}