Fixed CreatureException not saving error string.
continuous-integration/drone/push Build is passing

This commit is contained in:
Deukhoofd committed 2020-01-11 19:25:16 +01:00
1 parent c3877e0151
commit 779f0b08cf
1 file changed
+1 -1
+1 -1
View File
@@ -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(); }
};