Skip to content

Commit

Permalink
Fix CNodeAddress::IsValid()
Browse files Browse the repository at this point in the history
  • Loading branch information
Pirulax committed Jul 30, 2023
1 parent f652cb7 commit 12b45ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/game_sa/NodeAddress.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CNodeAddress {
void ResetNodeId() { m_wNodeId = UINT16_MAX; }

[[nodiscard]] bool IsAreaValid() const { return m_wAreaId != (uint16)-1; }
[[nodiscard]] bool IsValid() const { return m_wAreaId != (uint16)-1 || m_wNodeId != (uint16)-1; }
[[nodiscard]] bool IsValid() const { return m_wAreaId != (uint16)-1 && m_wNodeId != (uint16)-1; }

operator bool() const { return IsValid(); }
};
Expand Down

0 comments on commit 12b45ee

Please sign in to comment.