diff options
author | Nicola Mettifogo | 2008-04-17 09:32:57 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-04-17 09:32:57 +0000 |
commit | d4c8d4e18fcb64bed3082caf66ecd9cebf061556 (patch) | |
tree | c98135eba14a79a38993814fa159126f2e9fec9b /engines/parallaction/exec_ns.cpp | |
parent | 984e42569e263505f2e13000613d2c35aee49b43 (diff) | |
download | scummvm-rg350-d4c8d4e18fcb64bed3082caf66ecd9cebf061556.tar.gz scummvm-rg350-d4c8d4e18fcb64bed3082caf66ecd9cebf061556.tar.bz2 scummvm-rg350-d4c8d4e18fcb64bed3082caf66ecd9cebf061556.zip |
Fixed usage of SharedPtr, so that reference counting is proper and there are no more objects that need constructors at global level (helps PalmOS).
svn-id: r31533
Diffstat (limited to 'engines/parallaction/exec_ns.cpp')
-rw-r--r-- | engines/parallaction/exec_ns.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/parallaction/exec_ns.cpp b/engines/parallaction/exec_ns.cpp index c383920f18..ed4592646b 100644 --- a/engines/parallaction/exec_ns.cpp +++ b/engines/parallaction/exec_ns.cpp @@ -496,7 +496,7 @@ void Parallaction::displayComment(ExamineData *data) { -uint16 Parallaction::runZone(ZonePtr& z) { +uint16 Parallaction::runZone(ZonePtr z) { debugC(3, kDebugExec, "runZone (%s)", z->_name); uint16 subtype = z->_type & 0xFFFF; @@ -542,7 +542,7 @@ uint16 Parallaction::runZone(ZonePtr& z) { // // ZONE TYPE: DOOR // -void Parallaction::updateDoor(ZonePtr& z) { +void Parallaction::updateDoor(ZonePtr z) { if (z->u.door->gfxobj) { uint frame = (z->_flags & kFlagsClosed ? 0 : 1); @@ -559,7 +559,7 @@ void Parallaction::updateDoor(ZonePtr& z) { // ZONE TYPE: GET // -int16 Parallaction::pickupItem(ZonePtr &z) { +int16 Parallaction::pickupItem(ZonePtr z) { int r = addInventoryItem(z->u.get->_icon); if (r != -1) { _gfx->showGfxObj(z->u.get->gfxobj, false); |