aboutsummaryrefslogtreecommitdiff
path: root/midend.c
diff options
context:
space:
mode:
Diffstat (limited to 'midend.c')
-rw-r--r--midend.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/midend.c b/midend.c
index 2e49e8d..c9ef415 100644
--- a/midend.c
+++ b/midend.c
@@ -2542,7 +2542,8 @@ static const char *midend_deserialise_internal(
data.ui = me->ourgame->new_ui(data.states[0].state);
if (data.uistr && me->ourgame->decode_ui)
- me->ourgame->decode_ui(data.ui, data.uistr);
+ me->ourgame->decode_ui(data.ui, data.uistr,
+ data.states[data.statepos-1].state);
/*
* Run the externally provided check function, and abort if it