mirror of
https://github.com/zhenyan121/SporeBG-Conid.git
synced 2026-04-10 14:24:10 +08:00
Refined the core interfaces of the game
This commit is contained in:
@@ -21,7 +21,7 @@ bool Rule::canPlacePiece(const Piece* piecePos) {
|
||||
}
|
||||
|
||||
bool Rule::canbeSelect(const Piece* PieceID, PlayerID ID) {
|
||||
if (PieceID->getPieceOwner() != ID) {
|
||||
if (PieceID == nullptr || PieceID->getPieceOwner() != ID) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user