Update to 1.11.1

This commit is contained in:
dP
2021-04-19 00:52:41 +03:00
parent 5253131d44
commit 5881c752f5
155 changed files with 1579 additions and 843 deletions

View File

@@ -19,7 +19,7 @@ public:
* Creates a "fatal error" exception.
* @param msg The message describing the cause of the fatal error.
*/
Script_FatalError(const char *msg) :
Script_FatalError(const std::string &msg) :
msg(msg)
{}
@@ -27,10 +27,10 @@ public:
* The error message associated with the fatal error.
* @return The error message.
*/
const char *GetErrorMessage() { return msg; }
const std::string &GetErrorMessage() const { return msg; }
private:
const char *msg; ///< The error message.
const std::string msg; ///< The error message.
};
#endif /* SCRIPT_FATALERROR_HPP */