Skip to content

Commit f500b94

Browse files
committed
playing.cxx: no world -> no tank
1 parent 63320f9 commit f500b94

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/bzflag/playing.cxx

+2-3
Original file line numberDiff line numberDiff line change
@@ -6124,7 +6124,7 @@ void drawFrame(const float dt)
61246124

61256125
// add dynamic nodes
61266126
SceneDatabase* scene = sceneRenderer->getSceneDatabase();
6127-
if (scene && myTank)
6127+
if (scene && myTank && world)
61286128
{
61296129

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

61456145
// add server shells
6146-
if (world)
6147-
world->getWorldWeapons()->addShots(scene, false);
6146+
world->getWorldWeapons()->addShots(scene, false);
61486147

61496148
// add antidote flag
61506149
myTank->addAntidote(scene);

0 commit comments

Comments
 (0)