aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/actions/action_play_with_sfx.cpp
diff options
context:
space:
mode:
authorwhiterandrek2018-05-21 14:27:29 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commita45e58319d7aa6da38f4ecee3ca07889a75d3a82 (patch)
treec6fee74bb9430e44c822e12ec52bc1d1866802a3 /engines/pink/objects/actions/action_play_with_sfx.cpp
parent656ca285ac7ac6f365fdde45accb020b80ec7898 (diff)
downloadscummvm-rg350-a45e58319d7aa6da38f4ecee3ca07889a75d3a82.tar.gz
scummvm-rg350-a45e58319d7aa6da38f4ecee3ca07889a75d3a82.tar.bz2
scummvm-rg350-a45e58319d7aa6da38f4ecee3ca07889a75d3a82.zip
PINK: fix signed vs unsigned comparison
Diffstat (limited to 'engines/pink/objects/actions/action_play_with_sfx.cpp')
-rw-r--r--engines/pink/objects/actions/action_play_with_sfx.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/pink/objects/actions/action_play_with_sfx.cpp b/engines/pink/objects/actions/action_play_with_sfx.cpp
index b43b498eeb..44033705ff 100644
--- a/engines/pink/objects/actions/action_play_with_sfx.cpp
+++ b/engines/pink/objects/actions/action_play_with_sfx.cpp
@@ -36,7 +36,7 @@ void ActionPlayWithSfx::deserialize(Pink::Archive &archive) {
void ActionPlayWithSfx::toConsole() {
debug("\tActionPlayWithSfx: _name = %s, _fileName = %s, z = %u, _startFrame = %u,"
" _endFrame = %u, _isLoop = %u", _name.c_str(), _fileName.c_str(), _z, _startFrame, _stopFrame, _isLoop);
- for (int i = 0; i < _sfxArray.size(); ++i) {
+ for (uint i = 0; i < _sfxArray.size(); ++i) {
_sfxArray[i]->toConsole();
}
}
@@ -64,7 +64,7 @@ void ActionPlayWithSfx::updateSound() {
if (!_actor->isPlaying() && !_isLoop)
return;
- for (int i = 0; i < _sfxArray.size(); ++i) {
+ for (uint i = 0; i < _sfxArray.size(); ++i) {
if (_sfxArray[i]->getFrame() == _decoder->getCurFrame()) {
_sfxArray[i]->play(_actor->getPage());
}
@@ -73,7 +73,7 @@ void ActionPlayWithSfx::updateSound() {
ActionPlayWithSfx::~ActionPlayWithSfx() {
ActionPlay::end();
- for (int i = 0; i < _sfxArray.size(); ++i) {
+ for (uint i = 0; i < _sfxArray.size(); ++i) {
delete _sfxArray[i];
}
}