remove unnecessary null checks

This commit is contained in:
DarthArgus
2014-10-26 22:53:42 -07:00
parent eb2e7c78d8
commit 594b3a4254
56 changed files with 98 additions and 199 deletions
@@ -5450,14 +5450,6 @@ int CreatureObject::getInstrumentVisualId() const
return visualId;
}
// last, check the look at target if no weapon is equipped
if (!hasWeapon)
{
int visualId = internalGetInstrumentVisualId(getLookAtTarget());
if(visualId)
return visualId;
}
return 0;
}