From c27b87b01ac11f784e54d11e3a5cba45fc9e5a95 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 19 Nov 2021 12:21:46 +0100 Subject: [PATCH] Fixes build. --- src/Battling/Models/Creature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Battling/Models/Creature.cpp b/src/Battling/Models/Creature.cpp index 4b5ebce..83bce2c 100644 --- a/src/Battling/Models/Creature.cpp +++ b/src/Battling/Models/Creature.cpp @@ -206,7 +206,7 @@ namespace CreatureLib::Battling { _currentHealth = newHealth; if (IsFainted() && damage > 0 && battle != nullptr) { - OnFaint(nullptr); + OnFaint(source); } }