mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-17 07:03:02 -04:00
remove unnecessary null checks
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user