mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Fix potential crashes
- some compilers have problems with using locally redeclared loop vars after an internal loop - fix ordering of conditional checks
This commit is contained in:
parent
65099897f4
commit
0db6e1bc57
3 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue