diff options
author | Max Horn | 2010-06-15 12:31:16 +0000 |
---|---|---|
committer | Max Horn | 2010-06-15 12:31:16 +0000 |
commit | 2b24a1a2adcd112a6f3d878c9172ec570a6077d9 (patch) | |
tree | ba8fff2af23a85f0acb98ddcc1567766a47961ac /engines/sci/engine/kscripts.cpp | |
parent | 68eeef8f1aa560954297291887f26bad6591aa15 (diff) | |
download | scummvm-rg350-2b24a1a2adcd112a6f3d878c9172ec570a6077d9.tar.gz scummvm-rg350-2b24a1a2adcd112a6f3d878c9172ec570a6077d9.tar.bz2 scummvm-rg350-2b24a1a2adcd112a6f3d878c9172ec570a6077d9.zip |
SCI: OOpify class ResourceId
svn-id: r49841
Diffstat (limited to 'engines/sci/engine/kscripts.cpp')
-rw-r--r-- | engines/sci/engine/kscripts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/kscripts.cpp b/engines/sci/engine/kscripts.cpp index c6d73556ba..a8cf92b2a6 100644 --- a/engines/sci/engine/kscripts.cpp +++ b/engines/sci/engine/kscripts.cpp @@ -61,8 +61,8 @@ reg_t kLock(EngineState *s, int argc, reg_t *argv) { if (which) g_sci->getResMan()->unlockResource(which); else { - if (id.type == kResourceTypeInvalid) - warning("[resMan] Attempt to unlock resource %i of invalid type %i", id.number, type); + if (id.getType() == kResourceTypeInvalid) + warning("[resMan] Attempt to unlock resource %i of invalid type %i", id.getNumber(), type); else warning("[resMan] Attempt to unlock non-existant resource %s", id.toString().c_str()); } |