From bba74ee525c7a4d30fa5e41facfc0f0890dd6335 Mon Sep 17 00:00:00 2001 From: MyNameIsTrez Date: Thu, 4 Jan 2024 23:31:45 +0100 Subject: [PATCH] Fix misleading error printing by FileReadLine() --- Managers/LuaMan.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Managers/LuaMan.cpp b/Managers/LuaMan.cpp index 028c28dc82..31ba1c72c7 100644 --- a/Managers/LuaMan.cpp +++ b/Managers/LuaMan.cpp @@ -1044,9 +1044,6 @@ namespace RTE { if (fgets(buf, sizeof(buf), m_OpenedFiles[fileIndex]) != nullptr) { return buf; } -#ifndef RELEASE_BUILD - g_ConsoleMan.PrintString("ERROR: " + std::string(FileEOF(fileIndex) ? "Tried to read past EOF." : "Failed to read from file.")); -#endif } else { g_ConsoleMan.PrintString("ERROR: Tried to read an invalid or closed file."); }