From d2d740af2a5c7c67fdb823ca8e12fc6af2716c93 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 10 Jan 2010 11:33:10 +0000 Subject: SCI: fixed typo when getting resourceId on kPortrait call - fixes resource not found in kq6 within pawn shop svn-id: r47223 --- engines/sci/engine/kgraphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index 1a0d789458..de02b96dca 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -658,7 +658,7 @@ reg_t kPortrait(EngineState *s, int argc, reg_t *argv) { if (argc == 10) { Common::String resourceName = s->_segMan->getString(argv[1]); Common::Point position = Common::Point(argv[2].toUint16(), argv[3].toUint16()); - uint resourceNum = argv[4].toUint16() & 0xff; + uint resourceNum = argv[4].toUint16(); uint noun = argv[5].toUint16() & 0xff; uint verb = argv[6].toUint16() & 0xff; uint cond = argv[7].toUint16() & 0xff; -- cgit v1.2.3