From 66d523545cc5d97e3bbf3555649c53e406df83fa Mon Sep 17 00:00:00 2001 From: mcmartin Date: Sun, 6 Jul 2003 05:49:42 +0000 Subject: [PATCH] Fixed a deadlock that blocked the system if you quit from the shipyard git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1030 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/shipyard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc2/src/sc2code/shipyard.c b/sc2/src/sc2code/shipyard.c index 30e686a85..bbea30b56 100644 --- a/sc2/src/sc2code/shipyard.c +++ b/sc2/src/sc2code/shipyard.c @@ -1277,8 +1277,8 @@ DoShipyard (PMENU_STATE pMS) else if (cancel || (select && pMS->CurState == SHIPYARD_EXIT)) { ExitShipyard: - SetSemaphore (GraphicsSem); EndHangarAnim (pMS); + SetSemaphore (GraphicsSem); DestroyDrawable (ReleaseDrawable (pMS->ModuleFrame)); pMS->ModuleFrame = 0; pMS->CurFrame = 0;