From 300cef00730f71e359187d6c17c304a5bb2b6b6d Mon Sep 17 00:00:00 2001 From: David Cernat Date: Thu, 1 Aug 2019 21:28:03 +0300 Subject: [PATCH] [Server] Allow setting of container record flags in SetRecordFlags() --- apps/openmw-mp/Script/Functions/RecordsDynamic.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/openmw-mp/Script/Functions/RecordsDynamic.cpp b/apps/openmw-mp/Script/Functions/RecordsDynamic.cpp index ad625a2d0..64b70ac53 100644 --- a/apps/openmw-mp/Script/Functions/RecordsDynamic.cpp +++ b/apps/openmw-mp/Script/Functions/RecordsDynamic.cpp @@ -680,6 +680,8 @@ void RecordsDynamicFunctions::SetRecordFlags(int flags) noexcept tempNpc.data.mFlags = flags; else if (writeRecordsType == mwmp::RECORD_TYPE::WEAPON) tempWeapon.data.mData.mFlags = flags; + else if (writeRecordsType == mwmp::RECORD_TYPE::CONTAINER) + tempContainer.data.mFlags = flags; else { LOG_MESSAGE_SIMPLE(Log::LOG_ERROR, "Tried to set flags for record type %i which lacks that property", writeRecordsType);