Small fix to RemoveElement
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1029 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1271,18 +1271,12 @@ RemoveElement (HLINK hLink)
|
|||||||
for (i = 0; i <= NUM_FX_CHANNELS; ++i)
|
for (i = 0; i <= NUM_FX_CHANNELS; ++i)
|
||||||
{
|
{
|
||||||
if ((PosObj = GetPositionalObject (i)) == ElementPtr)
|
if ((PosObj = GetPositionalObject (i)) == ElementPtr)
|
||||||
{
|
|
||||||
SetPositionalObject (i, NULL);
|
SetPositionalObject (i, NULL);
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
for (i = 0; i < num_sounds; ++i)
|
for (i = 0; i < num_sounds; ++i)
|
||||||
{
|
{
|
||||||
if (sound_posobj[i] == ElementPtr)
|
if (sound_posobj[i] == ElementPtr)
|
||||||
{
|
|
||||||
sound_posobj[i] = NULL;
|
sound_posobj[i] = NULL;
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
UnlockElement (hLink);
|
UnlockElement (hLink);
|
||||||
|
|||||||
Reference in New Issue
Block a user