浏览代码

fix for loop scoping

David Rose 21 年之前
父节点
当前提交
ae949e7ac9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pandatool/src/xfileegg/xFileToEggConverter.cxx

+ 1 - 1
pandatool/src/xfileegg/xFileToEggConverter.cxx

@@ -262,7 +262,7 @@ get_toplevel() {
   // have frames and/or animation.
   _any_frames = 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);
     if (child->is_standard_object("Frame")) {
       _any_frames = true;