Merge pull request #547 from asmaloney/fix_potential_crashes

Fix potential crashes
This commit is contained in:
Thomas Fischer 2014-03-15 10:57:21 +01:00
commit 835649aa2f
3 changed files with 6 additions and 6 deletions

View file

@ -3303,9 +3303,9 @@ void ShapeBase::unpackUpdate(NetConnection *con, BitStream *stream)
image.triggerDown = stream->readFlag();
image.altTriggerDown = stream->readFlag();
for (U32 i=0; i<ShapeBaseImageData::MaxGenericTriggers; ++i)
for (U32 j=0; j<ShapeBaseImageData::MaxGenericTriggers; ++j)
{
image.genericTrigger[i] = stream->readFlag();
image.genericTrigger[j] = stream->readFlag();
}
int count = stream->readInt(3);