From: Mario Date: Sat, 31 Dec 2016 00:59:20 +0000 (+1000) Subject: Remove the if() check, all we're doing is setting it to null anyway X-Git-Tag: xonotic-v0.8.2~326^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5d13bb6d83fda4d4b2c51d624ece3ab80ac264b5;p=xonotic%2Fxonotic-data.pk3dir.git Remove the if() check, all we're doing is setting it to null anyway --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 08fb6d481..3b0da8234 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -343,8 +343,6 @@ void PutObserverInServer(entity this) this.weaponmodel = ""; for (int slot = 0; slot < MAX_WEAPONSLOTS; ++slot) { - if(!this.weaponentities[slot]) - continue; // first load this.weaponentities[slot] = NULL; } this.exteriorweaponentity = NULL;