Fixes issue with getting builder from AngelScriptResolver

This commit is contained in:
Deukhoofd 2021-08-22 13:27:54 +02:00
parent 91a87af6b5
commit cf01511cfb
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ public:
void CreateScript(const char* name, const char* script); void CreateScript(const char* name, const char* script);
inline void SetSourceDirectory(std::string const& path) noexcept { _sourceDirectory = path; } inline void SetSourceDirectory(std::string const& path) noexcept { _sourceDirectory = path; }
const asIScriptModule* GetMainModule() const noexcept { return _mainModule; } const asIScriptModule* GetMainModule() const noexcept { return _mainModule; }
CScriptBuilder& GetBuilder() const noexcept { return _builder; } CScriptBuilder& GetBuilder() noexcept { return _builder; }
void FinalizeModule(); void FinalizeModule();
void DefineWord(const std::string& word) { _builder.DefineWord(word.c_str()); } void DefineWord(const std::string& word) { _builder.DefineWord(word.c_str()); }