Changed: Check getSpawn() before calling its methods

--HG--
branch : hotfix
hg/compatibility
kervala 10 years ago
parent b0937ec02b
commit 4de072865b

@ -714,9 +714,12 @@ void CBotNpc::sendVPA() // alternate VPA
void CBotNpc::sendVisualProperties() // VisualPropertyA, B, C void CBotNpc::sendVisualProperties() // VisualPropertyA, B, C
{ {
CMirrors::setVisualPropertyA( getSpawn()->dataSetRow(), _VisualPropertyA ); if (getSpawn())
CMirrors::setVisualPropertyB( getSpawn()->dataSetRow(), _VisualPropertyB ); {
CMirrors::setVisualPropertyC( getSpawn()->dataSetRow(), _VisualPropertyC ); CMirrors::setVisualPropertyA( getSpawn()->dataSetRow(), _VisualPropertyA );
CMirrors::setVisualPropertyB( getSpawn()->dataSetRow(), _VisualPropertyB );
CMirrors::setVisualPropertyC( getSpawn()->dataSetRow(), _VisualPropertyC );
}
} }
bool CBotNpc::reSpawn(bool sendMessage) bool CBotNpc::reSpawn(bool sendMessage)

Loading…
Cancel
Save