Forráskód Böngészése

Removed warning C4702: unreachable code from Object.h

Neo7k 9 éve
szülő
commit
e34f4da37f
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      oxygine/src/core/Object.h

+ 2 - 1
oxygine/src/core/Object.h

@@ -107,8 +107,9 @@ namespace oxygine
         dest cast = dynamic_cast<dest>(ptr);
         OX_ASSERT(cast && "can't cast pointer");
         return cast;
-#endif
+#else
         return static_cast<dest>(ptr);
+#endif
     }
 
     template<class T, class U>