mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
TRECISION: Fix 3 CppCheck warnings
This commit is contained in:
@@ -1857,7 +1857,6 @@ void PathFinding3D::buildFramelist() {
|
||||
// compute offset
|
||||
SVertex *v = _vm->_actor->_characterArea;
|
||||
float firstFrame = _vm->_actor->frameCenter(v);
|
||||
float startPos = 0.0;
|
||||
|
||||
// if he was already walking
|
||||
int curAction, curFrame, cfp;
|
||||
@@ -2000,7 +1999,7 @@ void PathFinding3D::buildFramelist() {
|
||||
b = 0;
|
||||
|
||||
len = 0.0;
|
||||
startPos = 0.0;
|
||||
float startPos = 0.0;
|
||||
for (a = 0; a < _numPathNodes - 1; a++) {
|
||||
curLen = 0.0;
|
||||
len += _vm->dist3D(_pathNode[a]._x, 0.0, _pathNode[a]._z,
|
||||
|
||||
@@ -88,7 +88,7 @@ bool FastFile::hasFile(const Common::String &name) const {
|
||||
|
||||
int FastFile::listMembers(Common::ArchiveMemberList &list) const {
|
||||
list.clear();
|
||||
for (Common::Array<FileEntry>::const_iterator i = _fileEntries.begin(); i != _fileEntries.end(); i++)
|
||||
for (Common::Array<FileEntry>::const_iterator i = _fileEntries.begin(); i != _fileEntries.end(); ++i)
|
||||
list.push_back(getMember(i->name));
|
||||
|
||||
return list.size();
|
||||
|
||||
@@ -62,7 +62,7 @@ void NightlongSmackerDecoder::muteTrack(uint track, bool mute) {
|
||||
}
|
||||
|
||||
void NightlongSmackerDecoder::setMute(bool mute) {
|
||||
for (TrackList::iterator it = getTrackListBegin(); it != getTrackListEnd(); it++) {
|
||||
for (TrackList::iterator it = getTrackListBegin(); it != getTrackListEnd(); ++it) {
|
||||
if ((*it)->getTrackType() == Track::kTrackTypeAudio)
|
||||
((AudioTrack *)*it)->setMute(mute);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user