LuaState: Projectiles are pushed using their full class.
This commit is contained in:
parent
bfd1a9601a
commit
7ed27c6b80
@ -589,7 +589,7 @@ void cLuaState::Push(cEntity * a_Entity)
|
|||||||
}
|
}
|
||||||
case cEntity::etProjectile:
|
case cEntity::etProjectile:
|
||||||
{
|
{
|
||||||
tolua_pushusertype(m_LuaState, a_Entity, "cProjectileEntity");
|
tolua_pushusertype(m_LuaState, a_Entity, a_Entity->GetClass());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case cEntity::etFloater:
|
case cEntity::etFloater:
|
||||||
|
Loading…
Reference in New Issue
Block a user