Xilmi / OpenXcom

Open-source clone of the original X-Com
http://openxcom.org
GNU General Public License v3.0
19 stars 10 forks source link

`haveTUtoAttack` has no effect due to redeclaration #15

Closed scarf005 closed 10 months ago

scarf005 commented 10 months ago

https://github.com/Xilmi/OpenXcom/blob/c219d96ca0417a21c1fb684d510f3db194844c13/src/Savegame/BattleUnit.cpp#L5851-L5881

bool haveTUtoAttack = true; redeclares haveTUtoAttack every time, thus it's always false in line 5881.