Don't use getActiveCamera which is not initialized yet

This commit is contained in:
Benau 2019-01-07 00:37:45 +08:00
parent e57f9ad6dd
commit b555851f57

View File

@ -286,7 +286,7 @@ void ClientLobby::addAllPlayers(Event* event)
{
World* w = World::getWorld();
w->setLiveJoinWorld(true);
Camera* cam = Camera::getActiveCamera();
Camera* cam = Camera::getCamera(0);
for (unsigned i = 0; i < w->getNumKarts(); i++)
{
AbstractKart* k = w->getKart(i);