diff options
| author | Treeston <treeston.mmoc@gmail.com> | 2018-02-09 18:07:57 +0100 |
|---|---|---|
| committer | Treeston <treeston.mmoc@gmail.com> | 2018-02-09 18:07:57 +0100 |
| commit | b456915f9a565d570a0f5732d32935b7082312f5 (patch) | |
| tree | cb4a9abaad656a782149bb719f74a6817699a98b /src/server/game/AI/AIException.h | |
| parent | 303efcf0e4ee9ce3cfe308a3d6aa2aece1aa39da (diff) | |
Game/AI: InvalidAIException internal cleanup
Diffstat (limited to 'src/server/game/AI/AIException.h')
| -rw-r--r-- | src/server/game/AI/AIException.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/server/game/AI/AIException.h b/src/server/game/AI/AIException.h index 265e5dddb5c..d012a4cc5fe 100644 --- a/src/server/game/AI/AIException.h +++ b/src/server/game/AI/AIException.h @@ -25,16 +25,11 @@ class TC_GAME_API InvalidAIException : public std::exception { public: - InvalidAIException(char const* _message); - ~InvalidAIException() throw() { } - + InvalidAIException(char const* msg) : msg_(msg) {} char const* what() const noexcept override { return msg_.c_str(); } -protected: - std::string & message() throw() { return msg_; } - private: - std::string msg_; + std::string const msg_; }; #endif |
