From 2c8e0cefb15205c61a10a650e63d7fb53fad00a6 Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Thu, 31 Mar 2016 23:42:03 +0200 Subject: ADL: Store items in a List instead of an Array Item IDs are not necessarily sequential --- engines/adl/adl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/adl/adl.h') diff --git a/engines/adl/adl.h b/engines/adl/adl.h index 43d3187d47..42d6667cab 100644 --- a/engines/adl/adl.h +++ b/engines/adl/adl.h @@ -139,6 +139,7 @@ enum { }; struct Item { + byte id; byte noun; byte room; byte picture; @@ -157,7 +158,7 @@ struct Time { struct State { Common::Array rooms; - Common::Array items; + Common::List items; Common::Array vars; byte room; -- cgit v1.2.3