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:
|
||||
{
|
||||
tolua_pushusertype(m_LuaState, a_Entity, "cProjectileEntity");
|
||||
tolua_pushusertype(m_LuaState, a_Entity, a_Entity->GetClass());
|
||||
break;
|
||||
}
|
||||
case cEntity::etFloater:
|
||||
|
Loading…
Reference in New Issue
Block a user