From 4c8717477cc2b9a63ff880e15dd4e6053693a221 Mon Sep 17 00:00:00 2001 From: Quietust Date: Sat, 4 Feb 2012 16:38:54 -0600 Subject: [PATCH] Fix really stupid typo --- plugins/getplants.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/getplants.cpp b/plugins/getplants.cpp index d925f4b6b..b8f607c87 100644 --- a/plugins/getplants.cpp +++ b/plugins/getplants.cpp @@ -92,7 +92,7 @@ DFhackCExport command_result df_getplants (Core * c, vector & parameter bool dirty = false; 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 y = plant->pos.y % 16; if (plantIDs.find(plant->material) != plantIDs.end())