TRECISION: Fix 3 CppCheck warnings

This commit is contained in:
Strangerke
2021-05-29 21:24:34 +01:00
committed by SupSuper
parent 1a0cb0ac04
commit a50ef6076f
3 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -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,
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -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);
}