diff --git a/Source/Contents/Effects/AMachineEffect.cpp b/Source/Contents/Effects/AMachineEffect.cpp index 685889f1..67443653 100644 --- a/Source/Contents/Effects/AMachineEffect.cpp +++ b/Source/Contents/Effects/AMachineEffect.cpp @@ -51,7 +51,8 @@ void CAMachineEffect::Close() { // OFFSET: 0x006F6DB0 // FUNCTION: fn_06853 void CAMachineEffect::Slot03() { - std::map::iterator it = this->unknown_00CC.find(this->unknown_00D4); + const int key = this->unknown_00D4; + std::map::iterator it = this->unknown_00CC.find(key); if (it == this->unknown_00CC.end()) { return; }