From c1aa404e028a811fdbda9f8142ed92925fdbeb5e Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sat, 2 Aug 2025 15:50:24 -0500 Subject: [PATCH] resize vector2d to have room for legacy load --- src/universe/party.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/universe/party.cpp b/src/universe/party.cpp index 030ec856..deb94041 100644 --- a/src/universe/party.cpp +++ b/src/universe/party.cpp @@ -274,10 +274,12 @@ void cParty::import_legacy(legacy::stored_items_list_type& old,short which_list) } void cParty::import_legacy(legacy::setup_save_type& old){ - for(int n = 0; n < 4; n++) + for(int n = 0; n < 4; n++){ + setup[n].resize(64, 64); for(int i = 0; i < 64; i++) for(int j = 0; j < 64; j++) setup[n][i][j] = old.setup[n][i][j]; + } } void cParty::cConvers::import_legacy(legacy::talk_save_type old, const cScenario& scenario){