Merge pull request #1621 from DarkflameUniverse/EmosewaMC-patch-10

fix: compiler issue on newer gcc versions
This commit is contained in:
Gie "Max" Vanommeslaeghe 2024-07-02 12:12:30 +02:00 committed by GitHub
commit 84fff7c380
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);