changeset 93:0ea341301461

Fixed syntax error in container.py.
author KarstenBock@gmx.net
date Wed, 21 Sep 2011 16:11:06 +0200
parents 0f659c7675f6
children 0a2cc748d16b
files src/parpg/components/container.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/parpg/components/container.py	Wed Sep 21 16:10:14 2011 +0200
+++ b/src/parpg/components/container.py	Wed Sep 21 16:11:06 2011 +0200
@@ -71,7 +71,7 @@
             return container.children[slot_or_type]
     else:
         for item in container.children:
-            if child and if child.type == slot_or_type:
+            if child and child.type == slot_or_type:
                 return child
                 
     return None
@@ -86,7 +86,7 @@
             item.slot = -1
     else:
         for item in container.children:
-            if child and if child.type == slot_or_type:
+            if child and child.type == slot_or_type:
                 container.children[child.slot] = None
                 child.container = None
                 child.slot = -1