| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 636ebe8 commit 5ca16aa
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -53,11 +53,6 @@ boost::shared_ptr<PlayerMixin> PlayerMixin::wrap(CBaseEntity* pEntity) | |||
| 53 | 53 | ||
| 54 | 54 | object PlayerMixin::_obj(object cls, CPointer *pPtr) | |
| 55 | 55 | { | |
| 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 | - | ||
| 61 | 56 | return cls(object(ExcIndexFromPointer(pPtr))); | |
| 62 | 57 | } | |
| 63 | 58 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,11 +55,6 @@ boost::shared_ptr<WeaponMixin> WeaponMixin::wrap(CBaseEntity* pEntity) | |||
| 55 | 55 | ||
| 56 | 56 | object WeaponMixin::_obj(object cls, CPointer *pPtr) | |
| 57 | 57 | { | |
| 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 | - | ||
| 63 | 58 | return cls(object(ExcIndexFromPointer(pPtr))); | |
| 64 | 59 | } | |
| 65 | 60 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments