Skip to content

Commit 3e956f1

Browse files
authored
[ZH] Refactor logical expression in AcademyStats::init() (#1047)
1 parent 234c882 commit 3e956f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GeneralsMD/Code/GameEngine/Source/Common/RTS/AcademyStats.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ void AcademyStats::init( const Player *player )
115115
const PlayerTemplate *plyrTemplate = player->getPlayerTemplate();
116116

117117
if( !plyrTemplate ||
118-
plyrTemplate->getBaseSide().compareNoCase( "USA" ) &&
118+
( plyrTemplate->getBaseSide().compareNoCase( "USA" ) &&
119119
plyrTemplate->getBaseSide().compareNoCase( "China" ) &&
120-
plyrTemplate->getBaseSide().compareNoCase( "GLA" ) )
120+
plyrTemplate->getBaseSide().compareNoCase( "GLA" ) ) )
121121
{
122122
//Admittedly, this is a massive violation of data driven design. Shame on me!
123123
//Unknown side... don't provide ANY advice. Simplicity reasons.

0 commit comments

Comments
 (0)