Browse Source

Merge pull request #76 from Neo7k/dev

Removed warning C4702: unreachable code from Object.h
Denis Muratshin 9 years ago
parent
commit
1e559689ce
1 changed files with 2 additions and 1 deletions
  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>