diff gamelib/lab.py @ 178:52cc28b429b7

Debugging
author Neil Muller <drnlmuller@gmail.com>
date Sat, 12 May 2012 11:42:43 +0200
parents 4bbd4a1879f8
children
line wrap: on
line diff
--- a/gamelib/lab.py	Sat May 12 11:23:22 2012 +0200
+++ b/gamelib/lab.py	Sat May 12 11:42:43 2012 +0200
@@ -195,8 +195,9 @@
             self.new_schematics.remove(type(science))
 
     def steal_science(self, science):
-        self._gain_science(science)
-        self._stolen.append(science)
+        stolen = science()
+        self._gain_science(stolen)
+        self._stolen.append(stolen)
 
     def spend_points(self, things, basic_research):
         breakthroughs = []