Skip to content

Commit

Permalink
Update source/game_sa/NodeAddress.h
Browse files Browse the repository at this point in the history
Co-authored-by: Artem <51059739+temajm@users.noreply.github.com>
  • Loading branch information
Pirulax and temajm authored Jul 31, 2023
1 parent 12b45ee commit dbb8e79
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 IsAreaValid() && m_wNodeId != UINT16_MAX; }

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

0 comments on commit dbb8e79

Please sign in to comment.