Avoid redundant assignement of name to name.

This commit is contained in:
Michael Drake 2014-05-30 21:59:12 +01:00
parent e9d53022a4
commit d25b62f1c2
1 changed files with 2 additions and 1 deletions

View File

@ -1280,7 +1280,8 @@ void ro_gui_save_set_state(hlcache_handle *h, gui_save_type save_type,
local_name = NULL;
}
name = local_name ? local_name : name;
if (local_name != NULL)
name = local_name;
/* sprite name used for icon and dragging */
if (save_type == GUI_SAVE_COMPLETE) {