aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_graphics.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2016-08-03 20:07:13 +0200
committerEugene Sandulenko2017-07-03 08:50:10 +0200
commitabe6889bbe640c15e0fdf454d3867eb22869db5c (patch)
tree670b1274c3210eaded25de5f3d84e009c7f10425 /engines/mohawk/riven_graphics.cpp
parent0aaa3760c25e37800f0fda6ef4771c2347d72f7c (diff)
downloadscummvm-rg350-abe6889bbe640c15e0fdf454d3867eb22869db5c.tar.gz
scummvm-rg350-abe6889bbe640c15e0fdf454d3867eb22869db5c.tar.bz2
scummvm-rg350-abe6889bbe640c15e0fdf454d3867eb22869db5c.zip
MOHAWK: Remove the current card id from the Riven engine class
Diffstat (limited to 'engines/mohawk/riven_graphics.cpp')
-rw-r--r--engines/mohawk/riven_graphics.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/mohawk/riven_graphics.cpp b/engines/mohawk/riven_graphics.cpp
index b583bc9710..983c31efa3 100644
--- a/engines/mohawk/riven_graphics.cpp
+++ b/engines/mohawk/riven_graphics.cpp
@@ -22,6 +22,7 @@
#include "mohawk/resource.h"
#include "mohawk/riven.h"
+#include "mohawk/riven_card.h"
#include "mohawk/riven_graphics.h"
#include "mohawk/riven_sound.h"
@@ -82,7 +83,7 @@ void RivenGraphics::copyImageToScreen(uint16 image, uint32 left, uint32 top, uin
}
void RivenGraphics::drawPLST(uint16 x) {
- Common::SeekableReadStream* plst = _vm->getResource(ID_PLST, _vm->getCurCard());
+ Common::SeekableReadStream* plst = _vm->getResource(ID_PLST, _vm->getCurCard()->getId());
uint16 recordCount = plst->readUint16BE();
for (uint16 i = 0; i < recordCount; i++) {