ksys/act: Fix one matching issue

This commit is contained in:
Léo Lam 2020-11-16 20:44:05 +01:00
parent 9ee0c750f2
commit b0498a15bf
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
2 changed files with 12 additions and 11 deletions

View File

@ -73370,7 +73370,7 @@
0x0000007100d2f6f0,ActorInfoData::hasTagByName,232, 0x0000007100d2f6f0,ActorInfoData::hasTagByName,232,
0x0000007100d2f7d8,ActorInfoData::hasTagWithIter,296, 0x0000007100d2f7d8,ActorInfoData::hasTagWithIter,296,
0x0000007100d2f900,ActorInfoData::hasTag,224, 0x0000007100d2f900,ActorInfoData::hasTag,224,
0x0000007100d2f9e0,ActorInfoData::getActorSameGroupActorName,256,_ZNK4ksys3act8InfoData21getSameGroupActorNameEPKc? 0x0000007100d2f9e0,ActorInfoData::getActorSameGroupActorName,256,_ZNK4ksys3act8InfoData21getSameGroupActorNameEPKc
0x0000007100d2fae0,ActorInfoData::__auto1,136, 0x0000007100d2fae0,ActorInfoData::__auto1,136,
0x0000007100d2fb68,ActorInfoData::getTerrainTextures,452, 0x0000007100d2fb68,ActorInfoData::getTerrainTextures,452,
0x0000007100d2fd2c,ActorInfoData::getDrops,228, 0x0000007100d2fd2c,ActorInfoData::getDrops,228,

Can't render this file because it is too large.

View File

@ -193,9 +193,9 @@ void InfoData::getHomeAreas(const char* actor, HomeAreas& info) const {
} }
} }
// NON_MATCHING: stack
const char* InfoData::getSameGroupActorName(const char* actor) const { const char* InfoData::getSameGroupActorName(const char* actor) const {
al::ByamlIter iter; al::ByamlIter iter;
return [&] {
if (getActorIter(&iter, actor, false)) { if (getActorIter(&iter, actor, false)) {
al::ByamlHashIter hash_iter{iter.getRootNode()}; al::ByamlHashIter hash_iter{iter.getRootNode()};
al::ByamlData data; al::ByamlData data;
@ -206,6 +206,7 @@ const char* InfoData::getSameGroupActorName(const char* actor) const {
} }
} }
return sead::SafeString::cEmptyString.cstr(); return sead::SafeString::cEmptyString.cstr();
}();
} }
const char* InfoData::getString(const char* actor, const char* key, const char* InfoData::getString(const char* actor, const char* key,