diff --git a/src/engine/shared/fifo.cpp b/src/engine/shared/fifo.cpp index bffc2eb45..dab66675f 100644 --- a/src/engine/shared/fifo.cpp +++ b/src/engine/shared/fifo.cpp @@ -61,10 +61,8 @@ void CFifo::Update() while(true) { char *pResult = fgets(aBuf, sizeof(aBuf), m_File); - if(pResult != NULL) - m_pConsole->ExecuteLineFlag(pResult, m_Flag, -1); - else - break; + if(pResult == NULL) break; + m_pConsole->ExecuteLineFlag(pResult, m_Flag, -1); } } #endif