Fixed CreatureException not saving error string.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
c3877e0151
commit
779f0b08cf
|
@ -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(); }
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue