diff --git a/Source/Contents/Actors/MercenaryAI.cpp b/Source/Contents/Actors/MercenaryAI.cpp index 415c25b..01173a2 100644 --- a/Source/Contents/Actors/MercenaryAI.cpp +++ b/Source/Contents/Actors/MercenaryAI.cpp @@ -5,8 +5,18 @@ extern "C" { } // OFFSET: 0x00D9E3F0 +// FUNCTION: fn_22327 +CMercenaryAI::CMercenaryAI(int kind) : state(nullptr), actionStarted(0), actionDuration(0), kind(kind), lastTick(0) { +} // OFFSET: 0x00D9E430 +// FUNCTION: fn_22328 +CMercenaryAI::~CMercenaryAI() { + if (this->state) { + lua_close(this->state); + this->state = nullptr; + } +} // OFFSET: 0x00D9E570 // FUNCTION: fn_22331