mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-29 23:26:00 +00:00
Changed: Check getSpawn() before calling its methods
--HG-- branch : hotfix
This commit is contained in:
parent
b0937ec02b
commit
4de072865b
1 changed files with 6 additions and 3 deletions
|
@ -713,11 +713,14 @@ void CBotNpc::sendVPA() // alternate VPA
|
||||||
}
|
}
|
||||||
|
|
||||||
void CBotNpc::sendVisualProperties() // VisualPropertyA, B, C
|
void CBotNpc::sendVisualProperties() // VisualPropertyA, B, C
|
||||||
|
{
|
||||||
|
if (getSpawn())
|
||||||
{
|
{
|
||||||
CMirrors::setVisualPropertyA( getSpawn()->dataSetRow(), _VisualPropertyA );
|
CMirrors::setVisualPropertyA( getSpawn()->dataSetRow(), _VisualPropertyA );
|
||||||
CMirrors::setVisualPropertyB( getSpawn()->dataSetRow(), _VisualPropertyB );
|
CMirrors::setVisualPropertyB( getSpawn()->dataSetRow(), _VisualPropertyB );
|
||||||
CMirrors::setVisualPropertyC( getSpawn()->dataSetRow(), _VisualPropertyC );
|
CMirrors::setVisualPropertyC( getSpawn()->dataSetRow(), _VisualPropertyC );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool CBotNpc::reSpawn(bool sendMessage)
|
bool CBotNpc::reSpawn(bool sendMessage)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue