@ -46,7 +46,7 @@ namespace MWBase
///< Compile all scripts
/// \return count, success
virtual Compiler::Locals& getLocals (const std::string& name) = 0;
virtual const Compiler::Locals& getLocals (const std::string& name) = 0;
///< Return locals for script \a name.
virtual MWScript::GlobalScripts& getGlobalScripts() = 0;
@ -156,7 +156,7 @@ namespace MWScript
return std::make_pair (count, success);
}
Compiler::Locals& ScriptManager::getLocals (const std::string& name)
const Compiler::Locals& ScriptManager::getLocals (const std::string& name)
{
std::string name2 = Misc::StringUtils::lowerCase (name);
@ -67,7 +67,7 @@ namespace MWScript
virtual Compiler::Locals& getLocals (const std::string& name);
virtual const Compiler::Locals& getLocals (const std::string& name);
virtual GlobalScripts& getGlobalScripts();