diff options
author | Julien Templier | 2010-10-27 19:19:22 +0000 |
---|---|---|
committer | Julien Templier | 2010-10-27 19:19:22 +0000 |
commit | dba75791d9fcda63c546975fa98da4bc64afce7d (patch) | |
tree | 849eda271528992761b24803cdb02cb98639be93 /engines/lastexpress/game/sound.cpp | |
parent | aaf7ffdd5c160447cfa56468bf0a8c768d14ad5d (diff) | |
download | scummvm-rg350-dba75791d9fcda63c546975fa98da4bc64afce7d.tar.gz scummvm-rg350-dba75791d9fcda63c546975fa98da4bc64afce7d.tar.bz2 scummvm-rg350-dba75791d9fcda63c546975fa98da4bc64afce7d.zip |
LASTEXPRESS: Add some missing casts and const qualifiers
svn-id: r53880
Diffstat (limited to 'engines/lastexpress/game/sound.cpp')
-rw-r--r-- | engines/lastexpress/game/sound.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/lastexpress/game/sound.cpp b/engines/lastexpress/game/sound.cpp index 50004bc001..1bfba0ca4b 100644 --- a/engines/lastexpress/game/sound.cpp +++ b/engines/lastexpress/game/sound.cpp @@ -187,10 +187,10 @@ void SoundManager::clearQueue() { for (Common::List<SoundEntry *>::iterator i = _cache.begin(); i != _cache.end(); ++i) { SoundEntry *entry = (*i); + // Delete entry removeEntry(entry); + delete entry; - // Delete entry - SAFE_DELETE(entry); i = _cache.reverse_erase(i); } @@ -530,7 +530,7 @@ void SoundManager::saveLoadWithSerializer(Common::Serializer &s) { s.syncAsUint32LE(entry->field_38); // field_14; s.syncAsUint32LE(entry->entity); // entity; - uint32 field_1C = entry->field_48 - _data2; + uint32 field_1C = (uint32)entry->field_48 - _data2; if (field_1C > kFlag8) field_1C = 0; s.syncAsUint32LE(field_1C); // field_1C; |