Fixed wrong node name access for pet db
This commit is contained in:
parent
6eb896fc43
commit
f378f24f17
@ -49,7 +49,7 @@ uint64 PetDatabase::parseBodyNode( const YAML::Node &node ){
|
|||||||
std::shared_ptr<s_mob_db> mob = mobdb_search_aegisname( mob_name.c_str() );
|
std::shared_ptr<s_mob_db> mob = mobdb_search_aegisname( mob_name.c_str() );
|
||||||
|
|
||||||
if( mob == nullptr ){
|
if( mob == nullptr ){
|
||||||
this->invalidWarning( node["Target"], "Mob %s does not exist and cannot be used as a pet.\n", mob_name.c_str() );
|
this->invalidWarning( node["Mob"], "Mob %s does not exist and cannot be used as a pet.\n", mob_name.c_str() );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user