From f3a9f89e81e298c8abc5e18b0d2b1bb58812ec9f Mon Sep 17 00:00:00 2001 From: ZombieFreak115 <32988549+ZombieFreak115@users.noreply.github.com> Date: Fri, 29 May 2026 22:08:26 +0200 Subject: [PATCH] fix buffer which was not sized accordingly --- src/economy/economy_stats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/economy/economy_stats.cpp b/src/economy/economy_stats.cpp index 19abe903a..b4ad6a2b0 100644 --- a/src/economy/economy_stats.cpp +++ b/src/economy/economy_stats.cpp @@ -1020,7 +1020,7 @@ trade_volume_data_detailed import_volume_detailed( dcon::nation_id s, dcon::commodity_id c ) { - ve::vectorizable_buffer per_nation_data(uint32_t(1)); + ve::vectorizable_buffer per_nation_data = state.world.nation_make_vectorizable_float_buffer(); state.world.execute_serial_over_nation([&](auto nids) { per_nation_data.set(nids, 0.f);