Commit 6796bd9 1 parent 3138b8c commit 6796bd9 Copy full SHA for 6796bd9
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ bool RepeatLastBuildingCommandClass::Process()
511
511
/* *
512
512
* Do an extra check to make sure we can produce this item.
513
513
*/
514
- if (((1 << PlayerPtr->ID ) & buildingtype->Ownable ) == 0 ) {
514
+ if (((1 << PlayerPtr->ActLike ) & buildingtype->Ownable ) == 0 ) {
515
515
return false ;
516
516
}
517
517
@@ -588,7 +588,7 @@ bool RepeatLastInfantryCommandClass::Process()
588
588
/* *
589
589
* Do an extra check to make sure we can produce this item.
590
590
*/
591
- if (((1 << PlayerPtr->ID ) & infantrytype->Ownable ) == 0 ) {
591
+ if (((1 << PlayerPtr->ActLike ) & infantrytype->Ownable ) == 0 ) {
592
592
return false ;
593
593
}
594
594
@@ -665,7 +665,7 @@ bool RepeatLastUnitCommandClass::Process()
665
665
/* *
666
666
* Do an extra check to make sure we can produce this item.
667
667
*/
668
- if (((1 << PlayerPtr->ID ) & unittype->Ownable ) == 0 ) {
668
+ if (((1 << PlayerPtr->ActLike ) & unittype->Ownable ) == 0 ) {
669
669
return false ;
670
670
}
671
671
@@ -742,7 +742,7 @@ bool RepeatLastAircraftCommandClass::Process()
742
742
/* *
743
743
* Do an extra check to make sure we can produce this item.
744
744
*/
745
- if (((1 << PlayerPtr->ID ) & aircrafttype->Ownable ) == 0 ) {
745
+ if (((1 << PlayerPtr->ActLike ) & aircrafttype->Ownable ) == 0 ) {
746
746
return false ;
747
747
}
748
748
You can’t perform that action at this time.
0 commit comments