mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-26 08:46:19 +00:00
Changed: Check getSpawn() before calling its methods
This commit is contained in:
parent
a5d69a78d7
commit
a6cd459f33
1 changed files with 6 additions and 3 deletions
|
@ -714,9 +714,12 @@ void CBotNpc::sendVPA() // alternate VPA
|
|||
|
||||
void CBotNpc::sendVisualProperties() // VisualPropertyA, B, C
|
||||
{
|
||||
CMirrors::setVisualPropertyA( getSpawn()->dataSetRow(), _VisualPropertyA );
|
||||
CMirrors::setVisualPropertyB( getSpawn()->dataSetRow(), _VisualPropertyB );
|
||||
CMirrors::setVisualPropertyC( getSpawn()->dataSetRow(), _VisualPropertyC );
|
||||
if (getSpawn())
|
||||
{
|
||||
CMirrors::setVisualPropertyA( getSpawn()->dataSetRow(), _VisualPropertyA );
|
||||
CMirrors::setVisualPropertyB( getSpawn()->dataSetRow(), _VisualPropertyB );
|
||||
CMirrors::setVisualPropertyC( getSpawn()->dataSetRow(), _VisualPropertyC );
|
||||
}
|
||||
}
|
||||
|
||||
bool CBotNpc::reSpawn(bool sendMessage)
|
||||
|
|
Loading…
Reference in a new issue