Fixed CreatureException not saving error string.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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(); }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user