Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1.     // aux::pointers::reference_ptr<Object> to Creature
  2.     template< >
  3.     struct object_converter< Creature, aux::pointers::reference_ptr<Object> >
  4.     {
  5.         static inline Creature* convert(aux::pointers::reference_ptr<Object>& obj)
  6.         {
  7.             return ((obj != (Object*)NULL) && obj->isUnit() ? (Creature*)obj.get() : NULL);
  8.         }
  9.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement