From c3b573c7daa3f2815e063c9dabfaa5dbfe6dbb20 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 2 Feb 2020 14:39:57 +0100 Subject: [PATCH] Initialize Battle pointers with nullptr in Create class. --- src/Battling/Models/Creature.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Battling/Models/Creature.hpp b/src/Battling/Models/Creature.hpp index b5499cb..c73d6d1 100644 --- a/src/Battling/Models/Creature.hpp +++ b/src/Battling/Models/Creature.hpp @@ -34,8 +34,8 @@ namespace CreatureLib::Battling { Core::StatisticSet _flatStats; Core::StatisticSet _boostedStats; - Battle* _battle; - BattleSide* _side; + Battle* _battle = nullptr; + BattleSide* _side = nullptr; bool _onBattleField = false; std::string _nickname = "";