From c1fb997a8b772bbf854369d3684621e336fb88af Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Thu, 3 Nov 2011 20:11:24 +0000 Subject: [PATCH] fixed bug (found my MumuM) related to ep regen and attackboost --- source/glest_game/types/upgrade_type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/types/upgrade_type.cpp b/source/glest_game/types/upgrade_type.cpp index c74dfe03..08dc0c6d 100644 --- a/source/glest_game/types/upgrade_type.cpp +++ b/source/glest_game/types/upgrade_type.cpp @@ -608,7 +608,7 @@ void TotalUpgrade::deapply(const UpgradeTypeBase *ut,const Unit *unit) { else { maxEp -= ut->getMaxEp(); if(ut->getMaxEpRegeneration() != 0) { - maxEpRegeneration += ut->getMaxEpRegeneration(); + maxEpRegeneration -= ut->getMaxEpRegeneration(); } }