Commit 9bb21fa1 authored by Constantin's avatar Constantin

stupid bug

parent 46904944
...@@ -85,7 +85,7 @@ class Labyrinth: ...@@ -85,7 +85,7 @@ class Labyrinth:
return reduce(lambda x,y:x+y, self.tiles) return reduce(lambda x,y:x+y, self.tiles)
def getFreeTiles (self): def getFreeTiles (self):
return filter(lambda f: f.groundtype == Labyrinth.GroundType.FLOOR and len(f.things == 0) ,self.getTiles) return list(filter(lambda f: f.groundtype == Labyrinth.GroundType.FLOOR and len(f.things) == 0 ,self.getTiles()))
def getDescription (self, field): def getDescription (self, field):
descr = "" descr = ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment