rodecomp/Source/Contents/World/WorldActors.cpp

14 lines
328 B
C++

#include "Contents/Actors/RenderObject.h"
#include "Contents/World/World.h"
// OFFSET: 0x00AC8260
// FUNCTION: fn_17668
CRenderObject* CWorld::GetGameActorByAID(std::uint32_t aid) const {
for (CRenderObject* actor : this->actors) {
if (actor->render.accountId == aid) {
return actor;
}
}
return nullptr;
}