From ed05543011071153084ab054144fe4c3c4b52484 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 3 Jul 2002 23:35:50 +0000 Subject: fixed monkeyvga crasher that occured at least in the german version, but potentially could show up in others, too svn-id: r4453 --- object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'object.cpp') diff --git a/object.cpp b/object.cpp index 4cbac69726..6eae391cb2 100644 --- a/object.cpp +++ b/object.cpp @@ -729,7 +729,7 @@ byte *Scumm::getObjOrActorName(int obj) objptr = getOBCDFromObject(obj); if (objptr) - offset = *(objptr + 18); + offset = READ_LE_UINT16(objptr + 18); return (objptr + offset); } -- cgit v1.2.3