File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed
Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -53,11 +53,6 @@ boost::shared_ptr<PlayerMixin> PlayerMixin::wrap(CBaseEntity* pEntity)
5353
5454object PlayerMixin::_obj (object cls, CPointer *pPtr)
5555{
56- static PyTypeObject *type = converter::registry::query (typeid (PlayerMixin))->m_class_object ;
57-
58- if (type == downcast<PyTypeObject>(cls.ptr ()))
59- return object (__init__ (ExcIndexFromPointer (pPtr)));
60-
6156 return cls (object (ExcIndexFromPointer (pPtr)));
6257}
6358
Original file line number Diff line number Diff line change @@ -55,11 +55,6 @@ boost::shared_ptr<WeaponMixin> WeaponMixin::wrap(CBaseEntity* pEntity)
5555
5656object WeaponMixin::_obj (object cls, CPointer *pPtr)
5757{
58- static PyTypeObject *type = converter::registry::query (typeid (WeaponMixin))->m_class_object ;
59-
60- if (type == downcast<PyTypeObject>(cls.ptr ()))
61- return object (__init__ (ExcIndexFromPointer (pPtr)));
62-
6358 return cls (object (ExcIndexFromPointer (pPtr)));
6459}
6560
You can’t perform that action at this time.
0 commit comments