From 6460e9d325a007f31b608512d9815bfe51ad30fa Mon Sep 17 00:00:00 2001 From: Flugente Date: Sun, 15 May 2016 22:53:19 +0000 Subject: [PATCH] Fix: unable to save after loading an older savegame git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8213 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- SaveLoadGame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SaveLoadGame.cpp b/SaveLoadGame.cpp index 7f8c552b..84c08871 100644 --- a/SaveLoadGame.cpp +++ b/SaveLoadGame.cpp @@ -748,7 +748,8 @@ BOOLEAN LoadArmsDealerInventoryFromSavedGameFile( HWFILE hFile ) return( FALSE ); } - gArmsDealersInventory.resize(dealers); + // Flugente: regardless of the number of dealers in the old save, we need this to have the proper size from now on + gArmsDealersInventory.resize( NUM_ARMS_DEALERS ); if ( guiCurrentSaveGameVersion >= NONPROFILE_MERCHANTS ) {