Fixed crash on Linux introduced with the iOS patch

This commit is contained in:
Xawotihs
2010-11-19 23:38:56 +00:00
parent 8339cdd3b3
commit 58abfaa8e6

View File

@@ -278,7 +278,11 @@ int GameStateMenu::nextDirectory(const char * root, const char * file)
int found = 0;
if (!mDip)
{
#ifdef IOS
mDip = opendir(JGE_GET_RES(root).c_str());
#else
mDip = opendir(root);
#endif //IOS
}
while (!found && (mDit = readdir(mDip)))