diff demos/shooter/scripts/weapons.py @ 473:b78020d31186

Small update to ensure python doesn't try to delete objects that FIFE owns.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 20 Apr 2010 20:36:58 +0000
parents 3164715a0621
children afde89c1d50b
line wrap: on
line diff
--- a/demos/shooter/scripts/weapons.py	Fri Apr 16 21:44:18 2010 +0000
+++ b/demos/shooter/scripts/weapons.py	Tue Apr 20 20:36:58 2010 +0000
@@ -45,6 +45,7 @@
 	def create(self, location):
 		self._instance = self._layer.createInstance(self._obj, location.getExactLayerCoordinates(), "bullet")
 		fife.InstanceVisual.create(self._instance)
+		self._instance.thisown = 0
 
 	def run(self, velocity, location):
 		if not self._running: