From 0e1c8b48bd05614b3766f431ba4a7a821a8f0337 Mon Sep 17 00:00:00 2001 From: Wanne Date: Wed, 13 May 2009 07:59:49 +0000 Subject: [PATCH] Bugfix: Error occured when loading savegames with Release EXE compiled in Visual Studio 2008 (fixed by birdflu) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2849 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Laptop/PostalService.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Laptop/PostalService.cpp b/Laptop/PostalService.cpp index cf76479d0..b6d6199ff 100644 --- a/Laptop/PostalService.cpp +++ b/Laptop/PostalService.cpp @@ -444,7 +444,10 @@ BOOLEAN CPostalService::LoadShipmentListFromSaveGameFile(HWFILE hFile) } // Add shipment - memset(&shs, 0, sizeof(ShipmentStruct)); + + // WANNE: Bugfix: Fixed CTD in VS 2008 Release EXE (by birdflu) + //memset(&shs, 0, sizeof(ShipmentStruct)); + shs.pDestination = &(_GetDestination(sfs.usDestinationID)); shs.pDestinationDeliveryInfo = &(_DeliveryMethods[sfs.ubDeliveryMethodIndex].pDestinationDeliveryInfos->at(sfs.usDestinationID)); shs.ShipmentStatus = sfs.ShipmentStatus;