Update: #825 More initialization order issues.

This commit is contained in:
Matt Raykowski 2010-05-14 07:48:23 -05:00
parent 1f014d0412
commit 9297e16140
2 changed files with 7 additions and 1 deletions

View file

@ -214,6 +214,9 @@ namespace EFFECT_FAMILIES
case DMGTYPE::POISON : return DebuffResistPoison; case DMGTYPE::POISON : return DebuffResistPoison;
case DMGTYPE::ELECTRICITY : return DebuffResistElectricity; case DMGTYPE::ELECTRICITY : return DebuffResistElectricity;
case DMGTYPE::SHOCK : return DebuffResistSchock; case DMGTYPE::SHOCK : return DebuffResistSchock;
default:
return Unknown;
break;
} }
return Unknown; return Unknown;
} }
@ -229,6 +232,9 @@ namespace EFFECT_FAMILIES
case DMGTYPE::POISON : return CombatDoTPoison; case DMGTYPE::POISON : return CombatDoTPoison;
case DMGTYPE::ELECTRICITY : return CombatDoTElectricity; case DMGTYPE::ELECTRICITY : return CombatDoTElectricity;
case DMGTYPE::SHOCK : return CombatDoTShock; case DMGTYPE::SHOCK : return CombatDoTShock;
default:
return Unknown;
break;
} }
return Unknown; return Unknown;
} }

View file

@ -453,7 +453,7 @@ namespace MBEHAV
sint16 DeltaHP; sint16 DeltaHP;
uint16 Unused; /// Keep it, used to make the class size = 64 bits (sizeof(CBehaviour) MUST return 8 (bytes)) uint16 Unused; /// Keep it, used to make the class size = 64 bits (sizeof(CBehaviour) MUST return 8 (bytes))
inline CBehaviour() : Behaviour(UNKNOWN_BEHAVIOUR), Data(0), Data2(0), DeltaHP(0), Unused(0) {} inline CBehaviour() : Data(0), Data2(0), Behaviour(UNKNOWN_BEHAVIOUR), DeltaHP(0), Unused(0) {}
inline CBehaviour( EBehaviour behaviour ) inline CBehaviour( EBehaviour behaviour )
{ {