From 59c4b35479e9b8f1d7693f7e75d21535ff638fc5 Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Tue, 2 Jul 2024 01:55:42 -0700 Subject: [PATCH] Update Preconditions.cpp --- dGame/dUtilities/Preconditions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dGame/dUtilities/Preconditions.cpp b/dGame/dUtilities/Preconditions.cpp index 25e8b773..cd920863 100644 --- a/dGame/dUtilities/Preconditions.cpp +++ b/dGame/dUtilities/Preconditions.cpp @@ -26,7 +26,8 @@ Precondition::Precondition(const uint32_t condition) { if (result.eof()) { this->type = PreconditionType::ItemEquipped; this->count = 1; - this->values = { 0 }; + this->values.clear(); + this->values.push_back(0); LOG("Failed to find precondition of id (%i)!", condition);