Skip to content

Commit

Permalink
Cleanly initialize the GOAP example's state
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinealb committed Aug 21, 2023
1 parent f71fb39 commit 54f7bf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/goap/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#include <goap/goap.hpp>

struct LumberjackState {
bool has_wood;
bool has_axe;
bool has_wood{false};
bool has_axe{false};
};

bool operator==(const LumberjackState& b, const LumberjackState& a)
Expand Down

0 comments on commit 54f7bf7

Please sign in to comment.