mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-03 20:40:35 +00:00
lightning ref fixes
This commit is contained in:
parent
b83babe175
commit
2181ce08c3
1 changed files with 3 additions and 3 deletions
|
|
@ -242,7 +242,7 @@ LightningData::LightningData()
|
|||
|
||||
for (S32 i = 0; i < MaxThunders; i++)
|
||||
{
|
||||
INIT_SOUNDASSET_ARRAY(ThunderSound, MaxThunders);
|
||||
INIT_SOUNDASSET_ARRAY(ThunderSound, i);
|
||||
}
|
||||
|
||||
for (S32 i = 0; i < MaxTextures; i++)
|
||||
|
|
@ -295,7 +295,7 @@ bool LightningData::preload(bool server, String &errorStr)
|
|||
if (server == false)
|
||||
{
|
||||
for (S32 i = 0; i < MaxThunders; i++) {
|
||||
if (mThunderSound[i])
|
||||
if (getThunderSound(i))
|
||||
{
|
||||
_setThunderSound(getThunderSound(i), i);
|
||||
}
|
||||
|
|
@ -314,7 +314,7 @@ bool LightningData::preload(bool server, String &errorStr)
|
|||
{
|
||||
if (strikeTextureNames[k][0])
|
||||
{
|
||||
strikeTextures[k] = GFXTexHandle(strikeTextureNames[i], &GFXStaticTextureProfile, avar("%s() - strikeTextures[%d] (line %d)", __FUNCTION__, k, __LINE__));
|
||||
strikeTextures[k] = GFXTexHandle(strikeTextureNames[k], &GFXStaticTextureProfile, avar("%s() - strikeTextures[%d] (line %d)", __FUNCTION__, k, __LINE__));
|
||||
mNumStrikeTextures++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue