Skip to content

Commit

Permalink
xrEngine/pure_relcase.h: static_cast -> reinterpret_cast.
Browse files Browse the repository at this point in the history
The obj of cast inherits privately. Force reinterpretation for now.
  • Loading branch information
Kaffeine committed Nov 11, 2015
1 parent 3595697 commit 8214988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrEngine/pure_relcase.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ENGINE_API pure_relcase
pure_relcase(void (xr_stdcall class_type::* function_to_bind)(CObject*))
{
R_ASSERT(g_pGameLevel);
class_type* self = static_cast<class_type*>(this);
class_type* self = reinterpret_cast<class_type*>(this);
g_pGameLevel->Objects.relcase_register(
CObjectList::RELCASE_CALLBACK(
self,
Expand Down

0 comments on commit 8214988

Please sign in to comment.