From a9d78cae8419a00288c6964c5a5775935f2d4c87 Mon Sep 17 00:00:00 2001 From: gewlitys Date: Sun, 6 Jul 2003 03:23:59 +0000 Subject: [PATCH] Small fix to RemoveElement git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1029 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/process.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sc2/src/sc2code/process.c b/sc2/src/sc2code/process.c index 3c9bc3dfc..b5f479960 100644 --- a/sc2/src/sc2code/process.c +++ b/sc2/src/sc2code/process.c @@ -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);