ksys/map: Return references for some Object getters

mFlags0 is stored as an atomic u32 so return a reference to avoid
unnecessary atomic copies
This commit is contained in:
Léo Lam 2021-03-12 16:48:10 +01:00
parent 8e868dc2c3
commit 9ad7d5f982
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 4 additions and 4 deletions

View File

@ -137,10 +137,10 @@ public:
Object* findSrcLODLinkObject() const;
bool isRevivalGameDataFlagOn() const;
auto getFlags0() const { return mFlags0; }
auto getFlags() const { return mFlags; }
auto getActorFlags8() const { return mActorFlags8; }
auto getHardModeFlags() const { return mHardModeFlags; }
const auto& getFlags0() const { return mFlags0; }
const auto& getFlags() const { return mFlags; }
const auto& getActorFlags8() const { return mActorFlags8; }
const auto& getHardModeFlags() const { return mHardModeFlags; }
auto getActorDataIdx() const { return mActorDataIdx; }
auto getIdx() const { return mIdx; }