mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-28 16:39:39 +00:00
[Server] Allow setting of container record flags in SetRecordFlags()
This commit is contained in:
parent
0189d19d14
commit
300cef0073
1 changed files with 2 additions and 0 deletions
|
@ -680,6 +680,8 @@ void RecordsDynamicFunctions::SetRecordFlags(int flags) noexcept
|
||||||
tempNpc.data.mFlags = flags;
|
tempNpc.data.mFlags = flags;
|
||||||
else if (writeRecordsType == mwmp::RECORD_TYPE::WEAPON)
|
else if (writeRecordsType == mwmp::RECORD_TYPE::WEAPON)
|
||||||
tempWeapon.data.mData.mFlags = flags;
|
tempWeapon.data.mData.mFlags = flags;
|
||||||
|
else if (writeRecordsType == mwmp::RECORD_TYPE::CONTAINER)
|
||||||
|
tempContainer.data.mFlags = flags;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LOG_MESSAGE_SIMPLE(Log::LOG_ERROR, "Tried to set flags for record type %i which lacks that property", writeRecordsType);
|
LOG_MESSAGE_SIMPLE(Log::LOG_ERROR, "Tried to set flags for record type %i which lacks that property", writeRecordsType);
|
||||||
|
|
Loading…
Reference in a new issue