1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

AI/VCAI/VCAI.cpp: Remove unused variable introduced in 2014

This commit is contained in:
Johannes 'josch' Schauer 2018-04-19 15:15:22 +02:00
parent 8ead3e3b91
commit a54e8c88a9
No known key found for this signature in database
GPG Key ID: F2CBA5C78FBD83E1

View File

@ -1369,7 +1369,6 @@ void VCAI::buildStructure(const CGTownInstance * t)
//below algorithm focuses on economy growth at start of the game.
TResources currentRes = cb->getResourceAmount();
TResources currentIncome = t->dailyIncome();
int townIncome = currentIncome[Res::GOLD];
if(tryBuildAnyStructure(t, std::vector<BuildingID>(essential, essential + ARRAY_COUNT(essential))))
return;