Browse Source

Fixed GCC build.

Lasse Öörni 13 years ago
parent
commit
b52fea0618
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Engine/Graphics/Animation.cpp

+ 2 - 1
Engine/Graphics/Animation.cpp

@@ -198,7 +198,8 @@ bool Animation::Save(Serializer& dest)
                 triggerElem.SetVariant(triggers_[i].data_);
                 triggerElem.SetVariant(triggers_[i].data_);
             }
             }
             
             
-            xml->Save(File(context_, xmlName, FILE_WRITE));
+            File xmlFile(context_, xmlName, FILE_WRITE);
+            xml->Save(xmlFile);
         }
         }
         else
         else
             LOGWARNING("Can not save animation trigger data when not saving into a file");
             LOGWARNING("Can not save animation trigger data when not saving into a file");