From 89f15fe482503e69742e5c32847de565c2248944 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Thu, 10 Jan 2008 19:06:38 +0000 Subject: Fixed warnings. svn-id: r30379 --- engines/lure/hotspots.cpp | 8 ++++---- engines/lure/hotspots.h | 4 ++-- engines/lure/res_struct.cpp | 1 - 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp index b585f2a968..c2b99c1b7a 100644 --- a/engines/lure/hotspots.cpp +++ b/engines/lure/hotspots.cpp @@ -4839,13 +4839,13 @@ void HotspotList::loadFromStream(ReadStream *stream) { } } -HotspotScheduleRecord::HotspotScheduleRecord(uint16 hotspotId, CurrentActionStack &stack) { - this->hotspotId = hotspotId; +HotspotScheduleRecord::HotspotScheduleRecord(uint16 hId, CurrentActionStack &stack) { + hotspotId = hId; copyFrom(stack); } -HotspotScheduleRecord::HotspotScheduleRecord(uint16 hotspotId) { - this->hotspotId = hotspotId; +HotspotScheduleRecord::HotspotScheduleRecord(uint16 hId) { + hotspotId = hId; } void HotspotSchedules::saveToStream(WriteStream *stream) { diff --git a/engines/lure/hotspots.h b/engines/lure/hotspots.h index 789776167e..e47d15b238 100644 --- a/engines/lure/hotspots.h +++ b/engines/lure/hotspots.h @@ -255,8 +255,8 @@ class HotspotScheduleRecord: public CurrentActionStack { public: uint16 hotspotId; - HotspotScheduleRecord(uint16 hotspotId, CurrentActionStack &stack); - HotspotScheduleRecord(uint16 hotspotId); + HotspotScheduleRecord(uint16 hId, CurrentActionStack &stack); + HotspotScheduleRecord(uint16 hId); }; class HotspotSchedules: public ManagedList { diff --git a/engines/lure/res_struct.cpp b/engines/lure/res_struct.cpp index 2d4e3a9d8c..af13135f61 100644 --- a/engines/lure/res_struct.cpp +++ b/engines/lure/res_struct.cpp @@ -748,7 +748,6 @@ void SequenceDelayList::add(uint16 delay, uint16 seqOffset, bool canClear) { } void SequenceDelayList::tick() { - Resources &res = Resources::getReference(); uint32 currTime = g_system->getMillis(); SequenceDelayList::iterator i; -- cgit v1.2.3