summaryrefslogtreecommitdiff
path: root/openttd.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 /openttd.c
parent60ea083b28f5ef571243296c94b899f3038e8c03 (diff)
downloadopenttd-2a53bcf2b01afd81f336083d16f93c6177398fa2.tar.xz
(svn r7065) Use simple assignment instead of memcpy()
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openttd.c b/openttd.c
index d185237ad..fceee47d2 100644
--- a/openttd.c
+++ b/openttd.c
@@ -456,7 +456,7 @@ int ttd_main(int argc, char *argv[])
/* Make sure _patches is filled with _patches_newgame if we switch to a game directly */
if (_switch_mode != SM_NONE) {
- memcpy(&_opt, &_opt_newgame, sizeof(_opt));
+ _opt = _opt_newgame;
GfxLoadSprites();
UpdatePatches();
}
@@ -662,7 +662,7 @@ static void StartScenario(void)
}
_opt_ptr = &_opt;
- memcpy(&_opt_ptr->diff, &_opt_newgame.diff, sizeof(_opt_ptr->diff));
+ _opt_ptr->diff = _opt_newgame.diff;
_opt.diff_level = _opt_newgame.diff_level;
// Inititalize data