- fixed some GCC warnings.

This commit is contained in:
Christoph Oelckers 2015-04-29 00:19:21 +02:00
parent a2100410f2
commit 3c1fa3bed9
2 changed files with 3 additions and 3 deletions

View file

@ -314,7 +314,7 @@ int FSectorTagIterator::Next()
while (start >= 0 && tagManager.allTags[start].tag != searchtag) start = tagManager.allTags[start].nexttag;
if (start == -1) return -1;
ret = tagManager.allTags[start].target;
start = start = tagManager.allTags[start].nexttag;
start = tagManager.allTags[start].nexttag;
}
return ret;
}
@ -348,6 +348,6 @@ int FLineIdIterator::Next()
while (start >= 0 && tagManager.allIDs[start].tag != searchtag) start = tagManager.allIDs[start].nexttag;
if (start == -1) return -1;
int ret = tagManager.allIDs[start].target;
start = start = tagManager.allIDs[start].nexttag;
start = tagManager.allIDs[start].nexttag;
return ret;
}

View file

@ -304,7 +304,7 @@ class FMODStreamCapsule : public SoundStream
public:
FMODStreamCapsule(FMOD::Sound *stream, FMODSoundRenderer *owner, const char *url)
: Owner(owner), Stream(NULL), Channel(NULL),
UserData(NULL), Callback(NULL), URL(url), Reader(NULL), Ended(false)
UserData(NULL), Callback(NULL), Reader(NULL), URL(url), Ended(false)
{
SetStream(stream);
}