From 8144d44ca0c77c853094f55c887c949c876bda93 Mon Sep 17 00:00:00 2001 From: "Laurent Alonso(fr)" Date: Sat, 23 May 2020 21:58:46 +0200 Subject: [PATCH] stuff_done: be sure to initialize them when a party is created, ... --- src/universe/party.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/universe/party.cpp b/src/universe/party.cpp index 02e4b53d..6fb2b1c0 100644 --- a/src/universe/party.cpp +++ b/src/universe/party.cpp @@ -8,6 +8,7 @@ #include "party.hpp" +#include #include #include #include @@ -36,6 +37,7 @@ cParty::cParty(ePartyPreset party_preset) { out_loc.y = 84; in_boat = -1; in_horse = -1; + std::memset(stuff_done, 0, sizeof(stuff_done)); std::fill(magic_ptrs.begin(), magic_ptrs.end(), 0); for(int i = 0; i < 10; i++) out_c[i].exists = false;