forked from teamnwah/openmw-tes3coop
fixed broken getdistance function
This commit is contained in:
parent
b2731c5e26
commit
eff931b464
1 changed files with 4 additions and 1 deletions
|
@ -13,7 +13,10 @@ namespace Interpreter
|
||||||
virtual void execute (Runtime& runtime)
|
virtual void execute (Runtime& runtime)
|
||||||
{
|
{
|
||||||
std::string name = runtime.getStringLiteral (runtime[0]);
|
std::string name = runtime.getStringLiteral (runtime[0]);
|
||||||
runtime[0] = runtime.getContext().getDistance (name);
|
|
||||||
|
float distance = runtime.getContext().getDistance (name);
|
||||||
|
|
||||||
|
runtime[0] = *reinterpret_cast<Type_Data *> (&distance);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue