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:
gewlitys
2003-07-06 03:23:59 +00:00
parent f3264922c2
commit a9d78cae84
-6
View File
@@ -1271,18 +1271,12 @@ RemoveElement (HLINK hLink)
for (i = 0; i <= NUM_FX_CHANNELS; ++i)
{
if ((PosObj = GetPositionalObject (i)) == ElementPtr)
{
SetPositionalObject (i, NULL);
break;
}
}
for (i = 0; i < num_sounds; ++i)
{
if (sound_posobj[i] == ElementPtr)
{
sound_posobj[i] = NULL;
break;
}
}
}
UnlockElement (hLink);