feat(object): add ClntObjMgrPop

This commit is contained in:
fallenoak 2026-01-05 22:34:08 -06:00
parent 0e685d6fbd
commit 02961c3511
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 11 additions and 0 deletions

View File

@ -16,6 +16,15 @@ uint32_t ClntObjMgrGetMapID() {
return s_curMgr->m_mapID;
}
void ClntObjMgrPop() {
if (!s_savMgr) {
return;
}
s_curMgr = s_savMgr;
s_savMgr = nullptr;
}
void ClntObjMgrPush(ClntObjMgr* mgr) {
if (s_savMgr || mgr == s_curMgr) {
return;

View File

@ -6,6 +6,8 @@
uint32_t ClntObjMgrGetMapID();
void ClntObjMgrPop();
void ClntObjMgrPush(ClntObjMgr* mgr);
#endif