diff options
author | Darkvater <darkvater@openttd.org> | 2006-11-21 20:20:30 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-11-21 20:20:30 +0000 |
commit | 2a91c8d723ae2e9a71d964b35977799f3134fe84 (patch) | |
tree | 3b7a4d2f64eb443f7020e29b653b70318daf4aba /settings_gui.c | |
parent | 4113d151cd9bca733171a7b07d99c7abe8e6914c (diff) | |
download | openttd-2a91c8d723ae2e9a71d964b35977799f3134fe84.tar.xz |
(svn r7231) -Codechange: rename ini_get_variable to GetVariableAddress for use both in settings.c
and saveload.c
Diffstat (limited to 'settings_gui.c')
-rw-r--r-- | settings_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings_gui.c b/settings_gui.c index eff7dedc1..ebdc58df6 100644 --- a/settings_gui.c +++ b/settings_gui.c @@ -719,7 +719,7 @@ static void PatchesSelectionWndProc(Window *w, WindowEvent *e) for (i = 0; i != page->num; i++) { const SettingDesc *sd = page->entries[i].setting; const SettingDescBase *sdb = &sd->desc; - const void *var = ini_get_variable(&sd->save, patches_ptr); + const void *var = GetVariableAddress(patches_ptr, &sd->save); bool editable = true; bool disabled = false; @@ -788,7 +788,7 @@ static void PatchesSelectionWndProc(Window *w, WindowEvent *e) if ((sd->desc.flags & SGF_NETWORK_ONLY) && !_networking) return; if (!(sd->save.conv & SLF_NETWORK_NO) && _networking && !_network_server) return; - var = ini_get_variable(&sd->save, patches_ptr); + var = GetVariableAddress(patches_ptr, &sd->save); value = (int32)ReadValue(var, sd->save.conv); /* clicked on the icon on the left side. Either scroller or bool on/off */ |