summaryrefslogtreecommitdiff
path: root/settings_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-11-05 08:24:52 +0000
committertron <tron@openttd.org>2006-11-05 08:24:52 +0000
commit2a53bcf2b01afd81f336083d16f93c6177398fa2 (patch)
tree26ad191e57d6bb585a8b08b55819a3909380140d /settings_gui.c
parent60ea083b28f5ef571243296c94b899f3038e8c03 (diff)
downloadopenttd-2a53bcf2b01afd81f336083d16f93c6177398fa2.tar.xz
(svn r7065) Use simple assignment instead of memcpy()
Diffstat (limited to 'settings_gui.c')
-rw-r--r--settings_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings_gui.c b/settings_gui.c
index 57c56ea5a..88586746a 100644
--- a/settings_gui.c
+++ b/settings_gui.c
@@ -554,7 +554,7 @@ void ShowGameDifficulty(void)
DeleteWindowById(WC_GAME_OPTIONS, 0);
/* Copy current settings (ingame or in intro) to temporary holding place
* change that when setting stuff, copy back on clicking 'OK' */
- memcpy(&_opt_mod_temp, _opt_ptr, sizeof(GameOptions));
+ _opt_mod_temp = *_opt_ptr;
AllocateWindowDesc(&_game_difficulty_desc);
}