Skip to content

Commit

Permalink
playing.cxx: no world -> no tank
Browse files Browse the repository at this point in the history
  • Loading branch information
atupone committed Dec 13, 2024
1 parent 63320f9 commit f500b94
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bzflag/playing.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -6124,7 +6124,7 @@ void drawFrame(const float dt)

// add dynamic nodes
SceneDatabase* scene = sceneRenderer->getSceneDatabase();
if (scene && myTank)
if (scene && myTank && world)
{

int i;
Expand All @@ -6143,8 +6143,7 @@ void drawFrame(const float dt)
myTank->addShots(scene, false);

// add server shells
if (world)
world->getWorldWeapons()->addShots(scene, false);
world->getWorldWeapons()->addShots(scene, false);

// add antidote flag
myTank->addAntidote(scene);
Expand Down

0 comments on commit f500b94

Please sign in to comment.