Merhaba, gcc11 ve c++20 güncellemesi yapıyorum. DB build aldım. Game build alırken hata alıyorum.
Hata:
arena.cpp: In member function 'bool CArenaMap::AddArena(DWORD, WORD, WORD, WORD, WORD)':
arena.cpp:83:89: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
83 | if ((CArena*)(*iter)->CheckArea(startA_X, startA_Y, startB_X, startB_Y) == false)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
İlgili kısım:
for (; iter != m_listArena.end(); iter++)
{
if ((CArena*)(*iter)->CheckArea(startA_X, startA_Y, startB_X, startB_Y) == false)
{
sys_log(0, "CArenaMap::AddArena - Same Start Position set. stA(%d, %d) stB(%d, %d)", startA_X, startA_Y, startB_X, startB_Y);
return false;
}
}