Fix really stupid typo

develop
Quietust 2012-02-04 16:38:54 -06:00
parent 5ad9274689
commit 4c8717477c
1 changed files with 1 additions and 1 deletions

@ -92,7 +92,7 @@ DFhackCExport command_result df_getplants (Core * c, vector <string> & parameter
bool dirty = false; bool dirty = false;
for (size_t j = 0; j < cur->plants.size(); j++) for (size_t j = 0; j < cur->plants.size(); j++)
{ {
const df::plant *plant = cur->plants[i]; const df::plant *plant = cur->plants[j];
int x = plant->pos.x % 16; int x = plant->pos.x % 16;
int y = plant->pos.y % 16; int y = plant->pos.y % 16;
if (plantIDs.find(plant->material) != plantIDs.end()) if (plantIDs.find(plant->material) != plantIDs.end())