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

This commit is contained in:
Deukhoofd 2020-01-11 19:25:16 +01:00
parent c3877e0151
commit 779f0b08cf
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 1 deletions

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(); }
};