Do not crash without players
authorJoachim Breitner <mail@joachim-breitner.de>
Sun, 28 Jun 2009 12:58:28 +0000 (14:58 +0200)
committerJoachim Breitner <mail@joachim-breitner.de>
Sun, 28 Jun 2009 12:58:28 +0000 (14:58 +0200)
src/Lseed/Renderer/Cairo.hs

index 5858f14..dbc0971 100644 (file)
@@ -329,7 +329,7 @@ renderStats h garden = do
                        reverse $
                        sortBy (comparing snd) $
                        (M.toList owernerscore)
-       preserve $ do
+       if (not null texts) $ preserve $ do
                scale 1 (-1)
                translate 0 (1.5*groundLevel - h)