Skip to content

Commit abfd950

Browse files
committed
tweak: Assign constants
1 parent e94c235 commit abfd950

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Generals/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate/ChinookAIUpdate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,8 +1002,8 @@ Bool ChinookAIUpdate::chooseLocomotorSet(LocomotorSetType wst)
10021002
UpdateSleepTime ChinookAIUpdate::update()
10031003
{
10041004
ParkingPlaceBehaviorInterface* pp = getPP(m_airfieldForHealing);
1005-
ContainModuleInterface* contain = getObject()->getContain();
1006-
Bool waitingToEnterOrExit = contain && contain->hasObjectsWantingToEnterOrExit();
1005+
const ContainModuleInterface* contain = getObject()->getContain();
1006+
const Bool waitingToEnterOrExit = contain && contain->hasObjectsWantingToEnterOrExit();
10071007

10081008
if (pp != NULL)
10091009
{

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate/ChinookAIUpdate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,8 +1064,8 @@ Bool ChinookAIUpdate::chooseLocomotorSet(LocomotorSetType wst)
10641064
UpdateSleepTime ChinookAIUpdate::update()
10651065
{
10661066
ParkingPlaceBehaviorInterface* pp = getPP(m_airfieldForHealing);
1067-
ContainModuleInterface* contain = getObject()->getContain();
1068-
Bool waitingToEnterOrExit = contain && contain->hasObjectsWantingToEnterOrExit();
1067+
const ContainModuleInterface* contain = getObject()->getContain();
1068+
const Bool waitingToEnterOrExit = contain && contain->hasObjectsWantingToEnterOrExit();
10691069

10701070
if (pp != NULL)
10711071
{

0 commit comments

Comments
 (0)