Skip to content

Commit

Permalink
fix card_state::is_location
Browse files Browse the repository at this point in the history
  • Loading branch information
salix5 committed Nov 2, 2024
1 parent 33bc47c commit 62610c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion card.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const std::unordered_map<uint32, uint32> card::second_code = {
bool card_sort::operator()(card* const& c1, card* const& c2) const {
return c1->cardid < c2->cardid;
}
bool card_state::is_location(int32 loc) const {
bool card_state::is_location(uint32 loc) const {
if((loc & LOCATION_FZONE) && location == LOCATION_SZONE && sequence == 5)
return true;
if((loc & LOCATION_PZONE) && location == LOCATION_SZONE && pzone)
Expand Down
2 changes: 1 addition & 1 deletion card.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ struct card_state {
uint8 reason_player{ PLAYER_NONE };
effect* reason_effect{ nullptr };

bool is_location(int32 loc) const;
bool is_location(uint32 loc) const;
bool is_main_mzone() const {
return location == LOCATION_MZONE && sequence >= 0 && sequence <= 4;
}
Expand Down

0 comments on commit 62610c0

Please sign in to comment.