Skip to content

Commit

Permalink
Merge pull request #1621 from DarkflameUniverse/EmosewaMC-patch-10
Browse files Browse the repository at this point in the history
fix: compiler issue on newer gcc versions
  • Loading branch information
DarwinAnim8or authored Jul 2, 2024
2 parents 9400ee1 + 59c4b35 commit 84fff7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dGame/dUtilities/Preconditions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 84fff7c

Please sign in to comment.