mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-25 12:05:53 +00:00
EMI: Allow nil X, Y and Z values in SetActorHead.
This fixes Deadeye Dave's animation in pop.
This commit is contained in:
parent
b80dea5a90
commit
8316549020
@ -937,7 +937,7 @@ void Lua_V2::SetActorHead() {
|
||||
if (!actor)
|
||||
return;
|
||||
|
||||
if (lua_isstring(jointObj) && lua_isnumber(xObj) && lua_isnumber(yObj) && lua_isnumber(zObj)) {
|
||||
if (lua_isstring(jointObj)) {
|
||||
const char *joint = lua_getstring(jointObj);
|
||||
Math::Vector3d offset;
|
||||
offset.x() = lua_getnumber(xObj);
|
||||
|
Loading…
x
Reference in New Issue
Block a user