diff --git a/src/game/boe.main.cpp b/src/game/boe.main.cpp index 427a355a..64238282 100644 --- a/src/game/boe.main.cpp +++ b/src/game/boe.main.cpp @@ -396,16 +396,16 @@ static void replay_next_action() { return; }else if(t == "display_spells"){ auto info = info_from_action(next_action); - enum_v = boost::lexical_cast(info["mode"]); - eSkill mode = static_cast(enum_v); + eSkill mode = boost::lexical_cast(info["mode"]); short force_spell = boost::lexical_cast(info["force_spell"]); display_spells(mode, force_spell, nullptr); + return; }else if(t == "display_skills"){ - enum_v = boost::lexical_cast(next_action.GetText()); - eSkill force_skill = static_cast(enum_v); + eSkill force_skill = boost::lexical_cast(next_action.GetText()); display_skills(force_skill, nullptr); + return; }else if(t == "tip_of_day"){ tip_of_day(); return;