From ea1be622428a9608bd38a0de32b7938c3084533d Mon Sep 17 00:00:00 2001 From: titiger Date: Wed, 1 Oct 2014 00:33:47 +0200 Subject: [PATCH] fix for a VERY old bug related to wrong display of attack range see https://forum.megaglest.org/index.php?topic=9567.0 this is a bug found in glest 2.0 !!! --- source/glest_game/types/command_type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/types/command_type.cpp b/source/glest_game/types/command_type.cpp index 7c3e2b6a..7e966dc0 100644 --- a/source/glest_game/types/command_type.cpp +++ b/source/glest_game/types/command_type.cpp @@ -266,7 +266,7 @@ string AttackCommandType::getDesc(const TotalUpgrade *totalUpgrade, bool transla //attack distance str+= lang.getString("AttackDistance",(translatedValue == true ? "" : "english"))+": "+intToStr(attackSkillType->getAttackRange()); if(totalUpgrade->getAttackRange(attackSkillType) != 0) { - str+= "+"+intToStr(totalUpgrade->getAttackRange(attackSkillType) != 0); + str+= "+"+intToStr(totalUpgrade->getAttackRange(attackSkillType)); } str+="\n";