Fix crash bug introduced in r2116. traceEnt does not always have to be a client, so gauntlet attacking something that is not a client will crash the game. Thanks to Ensiform for reporting

This commit is contained in:
Thilo Schulz 2011-08-02 20:04:18 +00:00
parent 020bd8772f
commit 86a7cd3dea

View file

@ -91,9 +91,6 @@ qboolean CheckGauntletAttack( gentity_t *ent ) {
traceEnt = &g_entities[ tr.entityNum ];
if ( traceEnt->client->noclip ) {
return qfalse;
}
// send blood impact
if ( traceEnt->takedamage && traceEnt->client ) {
tent = G_TempEntity( tr.endpos, EV_MISSILE_HIT );