fix dAcNpcSltk_c::executeState_Wait regswap

This commit is contained in:
elijah-thomas774
2024-11-14 22:41:18 -05:00
parent 0f17d7c40e
commit fea7ebb5c8
2 changed files with 6 additions and 2 deletions
+3
View File
@@ -253,5 +253,8 @@ public:
return (mActionFlagsCont & mask) != 0;
}
static const dAcPy_c *GetLink() {
return LINK;
}
static dAcPy_c *LINK;
};
+3 -2
View File
@@ -159,8 +159,9 @@ bool dAcNpcSltk_c::checkSomething(mVec3_c pos) {
void dAcNpcSltk_c::initializeState_Wait() {}
void dAcNpcSltk_c::executeState_Wait() {
bool checkResult = false;
// Regswap this, link
dAcPy_c *link = dAcPy_c::LINK;
const dAcPy_c *link = dAcPy_c::GetLink();
dAcNpcSlb2_c *slb = mRef.get();
if (slb != nullptr) {
if (isSomething0()) {