Browse Source

Merge pull request #40 from daltomi/fix_file

Close file only if is valid
Denis Muratshin 9 years ago
parent
commit
84f003a5b1
1 changed files with 3 additions and 1 deletions
  1. 3 1
      oxygine/src/core/STDFileSystem.cpp

+ 3 - 1
oxygine/src/core/STDFileSystem.cpp

@@ -96,8 +96,10 @@ namespace oxygine
         void oxFileClose(oxHandle* file)
         {
             if (file)
+            {
                 _openedFiles--;
-            oxFileClose_(file);
+                oxFileClose_(file);
+            }
         }