Browse Source

*** empty log message ***

David Rose 24 years ago
parent
commit
f73752ceb9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      direct/src/ffi/FFIExternalObject.py

+ 3 - 3
direct/src/ffi/FFIExternalObject.py

@@ -75,13 +75,13 @@ class FFIExternalObject:
 
         # Walk along the lineage looking for downcast functions from class to class+1
         for i in range((len(lineage) - 1)):
-            fromClass = lineage[i]
-            toClass = lineage[i+1]
+            toClass = lineage[i]
+            fromClass = lineage[i+1]
             downcastFuncName = ('downcastTo' + toClass.__name__
                                 + 'From' + fromClass.__name__)
             # Look over this classes global modules dictionaries
             # for the downcast function name
-            for globmod in fromClass.__CModuleDowncasts__:
+            for globmod in toClass.__CModuleDowncasts__:
                 if globmod.__dict__.has_key(downcastFuncName):
                     func = globmod.__dict__[downcastFuncName]
                     FFIConstants.notify.debug(