diff options
Diffstat (limited to 'src/emu/distate.c')
-rw-r--r-- | src/emu/distate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/distate.c b/src/emu/distate.c index 6a0621d3eac..c8745a33449 100644 --- a/src/emu/distate.c +++ b/src/emu/distate.c @@ -523,8 +523,8 @@ device_state_entry &device_state_interface::state_add(int index, const char *sym m_state_list.append(*entry); // set the fast entry if applicable - if (index >= k_fast_state_min && index <= k_fast_state_max) - m_fast_state[index - k_fast_state_min] = entry; + if (index >= FAST_STATE_MIN && index <= FAST_STATE_MAX) + m_fast_state[index - FAST_STATE_MIN] = entry; return *entry; } @@ -595,8 +595,8 @@ void device_state_interface::interface_post_start() const device_state_entry *device_state_interface::state_find_entry(int index) { // use fast lookup if possible - if (index >= k_fast_state_min && index <= k_fast_state_max) - return m_fast_state[index - k_fast_state_min]; + if (index >= FAST_STATE_MIN && index <= FAST_STATE_MAX) + return m_fast_state[index - FAST_STATE_MIN]; // otherwise, scan the first for (const device_state_entry *entry = m_state_list.first(); entry != NULL; entry = entry->m_next) |