Fixed bug/epic fail in loader

This commit is contained in:
bart@bartbes.ath.cx
2010-04-18 23:40:01 +02:00
parent d4fa9aa551
commit bf72299223
@@ -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++)
{