From dc23302696ba4b84bc86452328a6ef62a4f5f7f9 Mon Sep 17 00:00:00 2001 From: Wanne Date: Wed, 8 Jul 2020 18:46:45 +0000 Subject: [PATCH] Fixed compilation error when trying to compile JA2UB version git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8849 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Laptop/insurance Contract.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Laptop/insurance Contract.cpp b/Laptop/insurance Contract.cpp index f9151aec..563a6ba4 100644 --- a/Laptop/insurance Contract.cpp +++ b/Laptop/insurance Contract.cpp @@ -1432,8 +1432,12 @@ void EndInsuranceInvestigation( UINT8 ubPayoutID ) // Flugente: also don't pay out if the death was suspicious. I mean, we get this if there were no enemies of the player straight up shot the guy... else if ( gMercProfiles[LaptopSaveInfo.pLifeInsurancePayouts[ubPayoutID].ubMercID].ubSuspiciousDeath == SUSPICIOUS_DEATH ) { +#ifdef JA2UB + // WANNE: I really don't know if we should call something here. At least it fixed the compilation error when compiling UB version. +#else // fraud, no payout! AddEmailWithSpecialData( INSUR_CHEAT_FRAUD, INSUR_CHEAT_FRAUD_LENGTH, INSURANCE_COMPANY, GetWorldTotalMin(), LaptopSaveInfo.pLifeInsurancePayouts[ubPayoutID].iPayOutPrice, LaptopSaveInfo.pLifeInsurancePayouts[ubPayoutID].ubMercID, TYPE_EMAIL_EMAIL_EDT, TYPE_E_NONE ); +#endif } else {