fix for loop scoping

This commit is contained in:
David Rose 2004-11-21 21:22:38 +00:00
parent b1c7748300
commit ae949e7ac9

View File

@ -262,7 +262,7 @@ get_toplevel() {
// have frames and/or animation. // have frames and/or animation.
_any_frames = false; _any_frames = false;
_any_animation = false; _any_animation = false;
for (int i = 0; i < num_objects; i++) { for (i = 0; i < num_objects; i++) {
XFileDataNode *child = _x_file->get_object(i); XFileDataNode *child = _x_file->get_object(i);
if (child->is_standard_object("Frame")) { if (child->is_standard_object("Frame")) {
_any_frames = true; _any_frames = true;