From b3dd56369414d50f7a4d6a452d1fe9d3b0b9db86 Mon Sep 17 00:00:00 2001 From: Wanne Date: Tue, 24 Nov 2009 14:59:40 +0000 Subject: [PATCH] - Bugfix: Enhanced IMP Creation: When choosing female, after leaving color choosing, the "email" button is removed. That's because the code tries to remove a button which do not exist (for big/small body) so it grabs the first one around (fixed by Sandro) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3307 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Laptop/IMP Color Choosing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Laptop/IMP Color Choosing.cpp b/Laptop/IMP Color Choosing.cpp index 36623345e..ec3105e98 100644 --- a/Laptop/IMP Color Choosing.cpp +++ b/Laptop/IMP Color Choosing.cpp @@ -452,7 +452,7 @@ void ExitIMPColorChoice( void ) DeleteVideoObjectFromIndex( guiIST_GreyGoldBox4 ); //remove the skin buttons - for(iCnt = 0; iCnt < 11; iCnt++) + for(iCnt = 0; iCnt < ( fCharacterIsMale ? 11 : 8); iCnt++) // fix of bug, removing unasigned buttons when female { //if there is a button allocated if( giIMPColorChoiceButton[iCnt] != -1 )