From 9af331c64fc75ae65fbf6879d746e4cbd602dd4e Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 22 May 2016 14:18:41 +0100 Subject: [PATCH] Memset battle, to avoid stats being added up twice. --- src/battle/battle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/battle/battle.c b/src/battle/battle.c index 81fbf58..d8ebd77 100644 --- a/src/battle/battle.c +++ b/src/battle/battle.c @@ -498,4 +498,6 @@ void destroyBattle(void) destroyBullets(); destroyEffects(); + + memset(&battle, 0, sizeof(Battle)); }