Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools.py b/tools.py
index c7df29b..be0b3b7 100644
--- a/tools.py
+++ b/tools.py
@@ -274,8 +274,8 @@ class JointTool(Tool):
# regardless, clean everything up
self.jb1 = self.jb2 = self.jb1pos = self.jb2pos = None
if event.button == 3:
- # add a centered fixed joint
- self.jb2 = world.get_bodies_at_pos(event.pos)
+ # add a centered fisxed joint
+ self.jb2 = self.game.world.get_bodies_at_pos(event.pos)
if self.jb2:
self.game.world.add.joint(self.jb2[0])
def draw(self):