From 23005e86822524f0e8a80a6fb4ca1b8074e0c2ea Mon Sep 17 00:00:00 2001 From: TomW Date: Wed, 2 Mar 2016 18:11:08 +0000 Subject: [PATCH] Fixed crash in Configuration window. --- src/win-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win-config.c b/src/win-config.c index bfc6258..c9e90d1 100644 --- a/src/win-config.c +++ b/src/win-config.c @@ -176,7 +176,7 @@ static BOOL CALLBACK config_dlgproc(HWND hdlg, UINT message, WPARAM wParam, LPAR else SendMessage(h, UDM_SETPOS, 0, mem_size / 1024); accel.nSec = 0; - accel.nInc = models[temp_model].ram_granularity; + accel.nInc = models[model].ram_granularity; SendMessage(h, UDM_SETACCEL, 1, (LPARAM)&accel); h = GetDlgItem(hdlg, IDC_CONFIGUREVID);