Browse Source

Fixed bug/epic fail in loader

[email protected] 15 years ago
parent
commit
bf72299223
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/modules/filesystem/physfs/wrap_Filesystem.cpp

+ 3 - 0
src/modules/filesystem/physfs/wrap_Filesystem.cpp

@@ -212,7 +212,10 @@ namespace physfs
 		int size = tmp.size();
 
 		if(size <= 4 || strcmp(filename + (size-4), ".lua") != 0)
+		{
 			tmp.append(".lua");
+			size = tmp.size();
+		}
 
 		for(int i=0;i<size-4;i++)
 		{