Skip to content

Commit c2b8a73

Browse files
authored
[GEN][ZH] Remove unnecessary NULL pointer test in CommandTranslator::evaluateContextCommand() (#1138)
1 parent c9a4e3a commit c2b8a73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Generals/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2071,7 +2071,7 @@ GameMessage::Type CommandTranslator::evaluateContextCommand( Drawable *draw,
20712071
} // end else if
20722072
#endif
20732073
// ********************************************************************************************
2074-
else if ( pos && !draw && TheInGameUI->canSelectedObjectsDoAction( InGameUI::ACTIONTYPE_SET_RALLY_POINT, NULL, InGameUI::SELECTION_ALL, FALSE ))
2074+
else if ( !draw && TheInGameUI->canSelectedObjectsDoAction( InGameUI::ACTIONTYPE_SET_RALLY_POINT, NULL, InGameUI::SELECTION_ALL, FALSE ))
20752075
{
20762076
msgType = GameMessage::MSG_SET_RALLY_POINT;
20772077

GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2201,7 +2201,7 @@ GameMessage::Type CommandTranslator::evaluateContextCommand( Drawable *draw,
22012201
} // end else if
22022202
#endif
22032203
// ********************************************************************************************
2204-
else if ( pos && !draw && TheInGameUI->canSelectedObjectsDoAction( InGameUI::ACTIONTYPE_SET_RALLY_POINT, NULL, InGameUI::SELECTION_ALL, FALSE ))
2204+
else if ( !draw && TheInGameUI->canSelectedObjectsDoAction( InGameUI::ACTIONTYPE_SET_RALLY_POINT, NULL, InGameUI::SELECTION_ALL, FALSE ))
22052205
{
22062206
msgType = GameMessage::MSG_SET_RALLY_POINT;
22072207

0 commit comments

Comments
 (0)