mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-21 21:31:09 +00:00
various cleanups and fixes
basicClouds refactored null dereference fixes in guiMenuBar
This commit is contained in:
parent
eb746a1142
commit
4d980e5406
6 changed files with 104 additions and 32 deletions
|
|
@ -183,6 +183,8 @@ void SplashData::packData(BitStream* stream)
|
|||
stream->writeRangedU32(explosion->getId(), DataBlockObjectIdFirst, DataBlockObjectIdLast);
|
||||
}
|
||||
|
||||
PACKDATA_ASSET_ARRAY_REFACTOR(Texture, NUM_TEX);
|
||||
|
||||
S32 i;
|
||||
for( i=0; i<NUM_EMITTERS; i++ )
|
||||
{
|
||||
|
|
@ -201,8 +203,6 @@ void SplashData::packData(BitStream* stream)
|
|||
{
|
||||
stream->write( times[i] );
|
||||
}
|
||||
|
||||
PACKDATA_ASSET_ARRAY_REFACTOR(Texture, NUM_TEX);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
|
@ -236,6 +236,8 @@ void SplashData::unpackData(BitStream* stream)
|
|||
explosionId = stream->readRangedU32( DataBlockObjectIdFirst, DataBlockObjectIdLast );
|
||||
}
|
||||
|
||||
UNPACKDATA_ASSET_ARRAY_REFACTOR(Texture, NUM_TEX);
|
||||
|
||||
U32 i;
|
||||
for( i=0; i<NUM_EMITTERS; i++ )
|
||||
{
|
||||
|
|
@ -254,8 +256,6 @@ void SplashData::unpackData(BitStream* stream)
|
|||
{
|
||||
stream->read( ×[i] );
|
||||
}
|
||||
|
||||
UNPACKDATA_ASSET_ARRAY_REFACTOR(Texture, NUM_TEX);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue