diff --git a/src/Core/Tweaks/CTweakData.h b/src/Core/Tweaks/CTweakData.h index f43a68bf..010541fc 100644 --- a/src/Core/Tweaks/CTweakData.h +++ b/src/Core/Tweaks/CTweakData.h @@ -20,10 +20,10 @@ class CTweakData : public CResource std::vector mTweakData; public: - CTweakData(CScriptTemplate* pTemplate, uint TweakID, CResourceEntry* pEntry = 0) - : mpTemplate(pTemplate) + CTweakData(CScriptTemplate* pTemplate, uint TweakID, CResourceEntry* pEntry = nullptr) + : CResource(pEntry) + , mpTemplate(pTemplate) , mTweakID(TweakID) - , CResource(pEntry) { CStructProperty* pProperties = pTemplate->Properties(); mTweakData.resize(pProperties->DataSize());