changeset 164:7beac783139b

Fix calling of apply_mission_special to avoid gamestate.milestone ending up as a dict.
author Simon Cross <hodgestar@gmail.com>
date Fri, 11 May 2012 23:21:15 +0200
parents 16e64557d85c
children a5b8d33752a4
files gamelib/missions.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/missions.py	Fri May 11 22:35:10 2012 +0200
+++ b/gamelib/missions.py	Fri May 11 23:21:15 2012 +0200
@@ -36,7 +36,7 @@
         if not self.applied:
             state.money += self.money
             state.reputation += self.reputation
-            state.apply_mission_special(self.special)
+            state.apply_mission_special(**self.special)
             self.applied = True
         else:
             raise RuntimeError('attempted to apply result twice')