From 779f0b08cfc7d2b19ee0bd27c61a28807172bc1f Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 11 Jan 2020 19:25:16 +0100 Subject: [PATCH] Fixed CreatureException not saving error string. --- src/Core/Exceptions/CreatureException.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Exceptions/CreatureException.hpp b/src/Core/Exceptions/CreatureException.hpp index 02271c5..d316d33 100644 --- a/src/Core/Exceptions/CreatureException.hpp +++ b/src/Core/Exceptions/CreatureException.hpp @@ -8,7 +8,7 @@ class CreatureException : std::exception { std::string _error; public: - CreatureException(std::string error) {} + CreatureException(std::string error) : _error(error) {} const char* what() const noexcept override { return _error.c_str(); } };