mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 12:35:46 +00:00
some cleanup
This commit is contained in:
parent
f6b502b195
commit
87c54adb24
@ -29,7 +29,7 @@ namespace MWScript
|
|||||||
|
|
||||||
int Locals::getIntVar(const std::string &script, const std::string &var)
|
int Locals::getIntVar(const std::string &script, const std::string &var)
|
||||||
{
|
{
|
||||||
Compiler::Locals locals = MWBase::Environment::get().getScriptManager()->getLocals(script);
|
const Compiler::Locals& locals = MWBase::Environment::get().getScriptManager()->getLocals(script);
|
||||||
int index = locals.getIndex(var);
|
int index = locals.getIndex(var);
|
||||||
char type = locals.getType(var);
|
char type = locals.getType(var);
|
||||||
if(index != -1)
|
if(index != -1)
|
||||||
@ -53,7 +53,7 @@ namespace MWScript
|
|||||||
|
|
||||||
bool Locals::setVarByInt(const std::string& script, const std::string& var, int val)
|
bool Locals::setVarByInt(const std::string& script, const std::string& var, int val)
|
||||||
{
|
{
|
||||||
Compiler::Locals locals = MWBase::Environment::get().getScriptManager()->getLocals(script);
|
const Compiler::Locals& locals = MWBase::Environment::get().getScriptManager()->getLocals(script);
|
||||||
int index = locals.getIndex(var);
|
int index = locals.getIndex(var);
|
||||||
char type = locals.getType(var);
|
char type = locals.getType(var);
|
||||||
if(index != -1)
|
if(index != -1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user