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
This commit is contained in:
Wanne
2009-05-13 07:59:49 +00:00
parent 2e99cbe784
commit 0e1c8b48bd
+4 -1
View File
@@ -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;