From a98b2d93f3727d18d8add5cb5c35830cbb171114 Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 5 Sep 2016 00:07:08 +0200 Subject: Split 'View' in two different fields in the item database - The field was used both for sprite view IDs and for weapon or ammunition subtypes. Now the fields 'ViewSprite' and 'Subtype' are used respectively. Signed-off-by: Haru --- src/map/script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index 914bee75c..a919467cf 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -14034,7 +14034,7 @@ BUILDIN(getiteminfo) script_pushint(st, it->slot); break; case 11: - script_pushint(st, it->look); + script_pushint(st, it->subtype); break; case 12: script_pushint(st, it->elv); @@ -14287,7 +14287,7 @@ BUILDIN(setiteminfo) it->slot = value; break; case 11: - it->look = value; + it->subtype = value; break; case 12: it->elv = value; -- cgit v1.2.3-70-g09d2