From 04fc5d042fb598389a6f6a5cfe81310dc9de7ac0 Mon Sep 17 00:00:00 2001 From: radius Date: Thu, 2 Jun 2016 23:35:57 -0500 Subject: [PATCH] fix osd message --- command.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/command.c b/command.c index de9ef8f512..eea1fd5ddd 100644 --- a/command.c +++ b/command.c @@ -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)