Mercurial > mm7
diff CastSpellInfo.h @ 1519:4c787c28ddce
Clean CastSpellInfo. (2)
author | yoctozepto |
---|---|
date | Wed, 04 Sep 2013 16:00:15 +0200 |
parents | c3da3c2985b8 |
children | 70b63fe6587c |
line wrap: on
line diff
--- a/CastSpellInfo.h Wed Sep 04 15:27:01 2013 +0200 +++ b/CastSpellInfo.h Wed Sep 04 16:00:15 2013 +0200 @@ -1,4 +1,7 @@ #pragma once + +#include <cstdint> + #include <array> namespace CastSpellInfoHelpers @@ -14,21 +17,16 @@ //----- (00426987) -------------------------------------------------------- inline CastSpellInfo() { - field_8 = 0; - spellnum = 0; - field_6 = 0; - uPlayerID_2 = 0; - uPlayerID = 0; - sound_id = 0; + memset(this, 0, sizeof(this)); } struct GUIWindow *GetCastSpellInInventoryWindow(); - __int16 spellnum; - unsigned __int16 uPlayerID; - __int16 uPlayerID_2; + uint16_t uSpellID; + uint16_t uPlayerID; + uint16_t uPlayerID_2; __int16 field_6; - __int16 field_8; + uint16_t uFlags; __int16 forced_spell_skill_level; int spell_target_pid; int sound_id;