Răsfoiți Sursa

Removed warning C4702: unreachable code from Object.h

Neo7k 9 ani în urmă
părinte
comite
e34f4da37f
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  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>