From e4c699083dad6328274a4f9ebe4668956c2bb431 Mon Sep 17 00:00:00 2001 From: Kp Date: Fri, 26 Sep 2014 02:42:11 +0000 Subject: [PATCH] Propagate for variables in similar/editor/eobject.cpp --- similar/editor/eobject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/similar/editor/eobject.cpp b/similar/editor/eobject.cpp index cefa65788..2970e7839 100644 --- a/similar/editor/eobject.cpp +++ b/similar/editor/eobject.cpp @@ -271,9 +271,9 @@ int place_object(segment *segp, vms_vector *object_pos, short object_type, short // Count number of player objects, return value. static int compute_num_players(void) { - int i, count = 0; + int count = 0; - for (i=0; i<=Highest_object_index; i++) + for (int i=0; i<=Highest_object_index; i++) if (Objects[i].type == OBJ_PLAYER) count++;