From: Neil Date: Thu, 18 Apr 2013 12:13:23 +0000 (+0200) Subject: Fix corner case crash X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=aa7da22c57b03b019d046ddd5a1efd1b837751d2;p=erdslangetjie.git Fix corner case crash --- diff --git a/erdslangetjie/__main__.py b/erdslangetjie/__main__.py index 71ef53b..ebccae8 100644 --- a/erdslangetjie/__main__.py +++ b/erdslangetjie/__main__.py @@ -203,7 +203,8 @@ class GameWindow(RelativeLayout): def reset_level(self): Clock.unschedule(self.timed_move) self.timer_set = False - self.remove_widget(self.nemesis_tile) + if self.nemesis_tile: + self.remove_widget(self.nemesis_tile) self.nemesis.reset_pos() if self.level_obj: self.level_obj.load_tiles()