Skip to content

Commit 80234be

Browse files
committed
fix: revert incorrect nullptr conversion for UnsignedInt bitfields m_open and m_closed
1 parent 16c7200 commit 80234be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Generals/Code/GameEngine/Source/GameLogic/AI/AIPathfind.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@ void PathfindCell::releaseInfo(void)
13391339
}
13401340

13411341
DEBUG_ASSERTCRASH(m_info->m_prevOpen== nullptr && m_info->m_nextOpen==0, ("Shouldn't be linked."));
1342-
DEBUG_ASSERTCRASH(m_info->m_open== nullptr && m_info->m_closed==0, ("Shouldn't be linked."));
1342+
DEBUG_ASSERTCRASH(m_info->m_open==0 && m_info->m_closed==0, ("Shouldn't be linked."));
13431343
DEBUG_ASSERTCRASH(m_info->m_goalUnitID==INVALID_ID && m_info->m_posUnitID==INVALID_ID, ("Shouldn't be occupied."));
13441344
DEBUG_ASSERTCRASH(m_info->m_goalAircraftID==INVALID_ID , ("Shouldn't be occupied by aircraft."));
13451345
if (m_info->m_prevOpen || m_info->m_nextOpen || m_info->m_open || m_info->m_closed) {

GeneralsMD/Code/GameEngine/Source/GameLogic/AI/AIPathfind.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ void PathfindCell::releaseInfo(void)
13541354
}
13551355

13561356
DEBUG_ASSERTCRASH(m_info->m_prevOpen== nullptr && m_info->m_nextOpen==0, ("Shouldn't be linked."));
1357-
DEBUG_ASSERTCRASH(m_info->m_open== nullptr && m_info->m_closed==0, ("Shouldn't be linked."));
1357+
DEBUG_ASSERTCRASH(m_info->m_open==0 && m_info->m_closed==0, ("Shouldn't be linked."));
13581358
DEBUG_ASSERTCRASH(m_info->m_goalUnitID==INVALID_ID && m_info->m_posUnitID==INVALID_ID, ("Shouldn't be occupied."));
13591359
DEBUG_ASSERTCRASH(m_info->m_goalAircraftID==INVALID_ID , ("Shouldn't be occupied by aircraft."));
13601360
if (m_info->m_prevOpen || m_info->m_nextOpen || m_info->m_open || m_info->m_closed) {

0 commit comments

Comments
 (0)