mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-11 00:44:33 +00:00
fixed broken getdistance function
This commit is contained in:
parent
b2731c5e26
commit
eff931b464
@ -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…
x
Reference in New Issue
Block a user