Initialize DialInfo::DATAstruct with the proper blank values

pull/3227/head
Evil Eye 2 years ago
parent 07849b7362
commit c0cc5feecd

@ -118,6 +118,7 @@
Bug #6717: Broken script causes interpreter stack corruption
Bug #6718: Throwable weapons cause arrow enchantment effect to be applied to the whole body
Bug #6730: LoopGroup stalls animation after playing :Stop frame until another animation is played
Bug #6753: Info records without a DATA subrecords are loaded incorrectly
Feature #890: OpenMW-CS: Column filtering
Feature #1465: "Reset" argument for AI functions
Feature #2491: Ability to make OpenMW "portable"

@ -133,12 +133,7 @@ namespace ESM
void DialInfo::blank()
{
mData.mUnknown1 = 0;
mData.mDisposition = 0;
mData.mRank = 0;
mData.mGender = 0;
mData.mPCrank = 0;
mData.mUnknown2 = 0;
mData = {};
mSelects.clear();
mPrev.clear();

@ -43,6 +43,8 @@ struct DialInfo
signed char mGender; // See Gender enum
signed char mPCrank; // Player rank
signed char mUnknown2;
DATAstruct() : mDisposition(0), mRank(-1), mGender(Gender::NA), mPCrank(-1) {}
}; // 12 bytes
DATAstruct mData;

Loading…
Cancel
Save