diff options
Diffstat (limited to 'engines/dm/menus.h')
-rw-r--r-- | engines/dm/menus.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/dm/menus.h b/engines/dm/menus.h index 4e0324205b..9c93fd00a7 100644 --- a/engines/dm/menus.h +++ b/engines/dm/menus.h @@ -40,10 +40,11 @@ class ActionList { public: byte _minimumSkillLevel[3]; /* Bit 7: requires charge, Bit 6-0: minimum skill level. */ ChampionAction _actionIndices[3]; - ActionList() { + ActionList() { resetToZero(); } + void resetToZero() { for (uint16 i = 0; i < 3; ++i) { _minimumSkillLevel[i] = 0; - _actionIndices[i] = k255_ChampionActionNone; + _actionIndices[i] = (ChampionAction)0; } } }; // @ ACTION_LIST |