summaryrefslogtreecommitdiff
path: root/tools/scaninc/c_file.cpp
diff options
context:
space:
mode:
authorPhlosioneer <mattmdrr2@gmail.com>2019-02-18 01:12:47 -0500
committerPhlosioneer <mattmdrr2@gmail.com>2019-02-18 01:12:47 -0500
commit5695617d64335474ead8a7e25c539daebcc55fa5 (patch)
tree0e9791a86b6aff83ab99aa9dd9878558f89fb824 /tools/scaninc/c_file.cpp
parent08579edbcd596c9659fe25490480c6f96e2b4288 (diff)
parente95140270be790b03e693f539770abfd6473916e (diff)
Merge branch 'master' into multiplayer-stuff
Diffstat (limited to 'tools/scaninc/c_file.cpp')
-rw-r--r--tools/scaninc/c_file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scaninc/c_file.cpp b/tools/scaninc/c_file.cpp
index d470f959d..595f366cb 100644
--- a/tools/scaninc/c_file.cpp
+++ b/tools/scaninc/c_file.cpp
@@ -134,7 +134,7 @@ bool CFile::ConsumeComment()
if (m_buffer[m_pos] == '/' && m_buffer[m_pos + 1] == '*')
{
m_pos += 2;
- while (m_buffer[m_pos] != '*' && m_buffer[m_pos + 1] != '/')
+ while (m_buffer[m_pos] != '*' || m_buffer[m_pos + 1] != '/')
{
if (m_buffer[m_pos] == 0)
return false;