From dbe9c7ff137f4308b7cb6a22c17de53750fdd939 Mon Sep 17 00:00:00 2001 From: Luis Michaelis Date: Tue, 30 Jan 2024 16:10:57 +0100 Subject: [PATCH] fix(*): compilation --- src/DaedalusVm.cc | 2 +- src/SaveGame.cc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/DaedalusVm.cc b/src/DaedalusVm.cc index e9f8dde..077450e 100644 --- a/src/DaedalusVm.cc +++ b/src/DaedalusVm.cc @@ -11,7 +11,7 @@ struct ZkInternal_DaedalusVm { zenkit::DaedalusVm handle; std::unordered_map> externals; std::function externalDefault; - std::string string_scope_workaround_cache; + std::string string_scope_workaround_cache {}; }; ZkDaedalusVm* ZkDaedalusVm_load(ZkRead* buf) { diff --git a/src/SaveGame.cc b/src/SaveGame.cc index 49d07e0..314dc6d 100644 --- a/src/SaveGame.cc +++ b/src/SaveGame.cc @@ -273,7 +273,7 @@ void ZkSaveState_getMission(ZkSaveState* slf, ZkSize i, char const** name, int* *name = slf->missions[i].name.c_str(); *id = slf->missions[i].id; - *av = slf->missions[i].av; + *av = slf->missions[i].available; *statusIndex = slf->missions[i].status_index; } @@ -284,7 +284,7 @@ void ZkSaveState_setMission(ZkSaveState* slf, ZkSize i, char const* name, int id slf->missions[i].name = name; slf->missions[i].id = id; - slf->missions[i].av = av; + slf->missions[i].available = av; slf->missions[i].status_index = statusIndex; } @@ -295,7 +295,7 @@ void ZkSaveState_addMission(ZkSaveState* slf, char const* name, int id, ZkBool a auto& m = slf->missions.emplace_back(); m.name = name; m.id = id; - m.av = av; + m.available = av; m.status_index = statusIndex; }