diff options
author | tron <tron@openttd.org> | 2006-11-05 08:24:52 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-11-05 08:24:52 +0000 |
commit | 88b78bb5e84b4777adbaaa3d8277fcd52a6a4cdd (patch) | |
tree | 26ad191e57d6bb585a8b08b55819a3909380140d /genworld_gui.c | |
parent | d008c45b4b522b757d7b8195ec77cbc32719020a (diff) | |
download | openttd-88b78bb5e84b4777adbaaa3d8277fcd52a6a4cdd.tar.xz |
(svn r7065) Use simple assignment instead of memcpy()
Diffstat (limited to 'genworld_gui.c')
-rw-r--r-- | genworld_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/genworld_gui.c b/genworld_gui.c index ee18fb227..807664860 100644 --- a/genworld_gui.c +++ b/genworld_gui.c @@ -163,7 +163,7 @@ static void StartGeneratingLandscape(glwp_modes mode) /* Copy all XXX_newgame to XXX */ UpdatePatches(); _opt_ptr = &_opt; - memcpy(_opt_ptr, &_opt_newgame, sizeof(GameOptions)); + *_opt_ptr = _opt_newgame; /* Load the right landscape stuff */ GfxLoadSprites(); |