Skip to content

Commit

Permalink
state: Fix an off-by-one
Browse files Browse the repository at this point in the history
  • Loading branch information
leoetlino committed Sep 2, 2019
1 parent d7f0833 commit 505aa6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/game/state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static constexpr StateInfo ex_state_info_table[] = {
template <typename Predicate>
static const StateInfo* FindStateInfo(Predicate predicate) {
const auto* table = rst::util::GetPointer<StateInfo>(0x6883FC);
auto it = std::find_if(table, table + 9, predicate);
auto it = std::find_if(table, table + 10, predicate);
if (it != table + 9)
return it;

Expand Down

0 comments on commit 505aa6b

Please sign in to comment.