Browse Source

assertion

David Rose 23 years ago
parent
commit
48eef75e74
1 changed files with 2 additions and 0 deletions
  1. 2 0
      direct/src/interval/Interval.py

+ 2 - 0
direct/src/interval/Interval.py

@@ -36,6 +36,8 @@ class Interval(DirectObject):
         # if it should be ignored in this case.
         self.openEnded = openEnded
 
+        assert(self.duration >= 0)
+
     def getName(self):
         return self.name