fix osd message

This commit is contained in:
radius 2016-06-02 23:35:57 -05:00
parent 7fb9ec5223
commit 04fc5d042f

View file

@ -1526,9 +1526,11 @@ static void command_event_load_state(const char *path, char *s, size_t len, bool
if (settings->state_slot < 0)
snprintf(s, len, "%s #-1 (auto).",
msg_hash_to_str(MSG_LOADED_STATE_FROM_SLOT));
else
else if (!undo)
snprintf(s, len, "%s #%d.", msg_hash_to_str(MSG_LOADED_STATE_FROM_SLOT),
settings->state_slot);
else
snprintf(s, len, "%s #-1 (undo).", msg_hash_to_str(MSG_LOADED_STATE_FROM_SLOT));
}
static void command_event_main_state(unsigned cmd)