Skip to content

Commit bba74ee

Browse files
committed
Fix misleading error printing by FileReadLine()
1 parent b62f65c commit bba74ee

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Managers/LuaMan.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,9 +1044,6 @@ namespace RTE {
10441044
if (fgets(buf, sizeof(buf), m_OpenedFiles[fileIndex]) != nullptr) {
10451045
return buf;
10461046
}
1047-
#ifndef RELEASE_BUILD
1048-
g_ConsoleMan.PrintString("ERROR: " + std::string(FileEOF(fileIndex) ? "Tried to read past EOF." : "Failed to read from file."));
1049-
#endif
10501047
} else {
10511048
g_ConsoleMan.PrintString("ERROR: Tried to read an invalid or closed file.");
10521049
}

0 commit comments

Comments
 (0)