mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-17 03:57:38 +01:00
Merge pull request #555 from Diegoisawesome/master
scaninc: Fix C comment consumption logic
This commit is contained in:
commit
efc5494834
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user