Skip to content

Commit d1e8b47

Browse files
committed
fixup! CDecision updates
1 parent d36b394 commit d1e8b47

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

plugin_sa/game_sa/CDecision.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
struct DecisionContext
1212
{
13-
bool onFoot;
14-
bool inVehicle;
13+
bool onFoot = false;
14+
bool inVehicle = false;
1515

1616
DecisionContext() = default;
1717
DecisionContext(bool onFoot, bool inVehicle) :
@@ -25,10 +25,10 @@ struct DecisionChances
2525
// weights that sums up to total value of all responses applicable to current event,
2626
// then chance is weight/total
2727

28-
unsigned char toNeutral;
29-
unsigned char toPlayer;
30-
unsigned char toFriend;
31-
unsigned char toEnemy;
28+
unsigned char toNeutral = 0;
29+
unsigned char toPlayer = 0;
30+
unsigned char toFriend = 0;
31+
unsigned char toEnemy = 0;
3232

3333
DecisionChances() = default;
3434
DecisionChances(unsigned char toNeutral, unsigned char toPlayer, unsigned char toFriend, unsigned char toEnemy) :

0 commit comments

Comments
 (0)