Browse Source

fix for compiler fault

David Rose 24 years ago
parent
commit
d191e37948
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/collide/collisionLevelState.cxx

+ 2 - 2
panda/src/collide/collisionLevelState.cxx

@@ -92,8 +92,8 @@ xform(const LMatrix4f &mat) {
       new_bounds.push_back((GeometricBoundingVolume *)NULL);
       new_bounds.push_back((GeometricBoundingVolume *)NULL);
     } else {
     } else {
       const GeometricBoundingVolume *old_bound = get_local_bound(c);
       const GeometricBoundingVolume *old_bound = get_local_bound(c);
-      GeometricBoundingVolume *new_bound;
-      DCAST_INTO_V(new_bound, old_bound->make_copy());
+      GeometricBoundingVolume *new_bound = 
+        DCAST(GeometricBoundingVolume, old_bound->make_copy());
       new_bound->xform(mat);
       new_bound->xform(mat);
       new_bounds.push_back(new_bound);
       new_bounds.push_back(new_bound);
     }
     }