mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-01-19 08:52:34 +01:00
Fixed a bug where trying to hook functions that had a pointer return type would result in some type conversion compiler errors
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4033
This commit is contained in:
parent
0d5a3c7d6b
commit
5606a22a9c
@ -389,7 +389,9 @@ namespace SourceHook
|
||||
/* 2) Declare some vars and set it up */ \
|
||||
std::list<HookManagerInfo::Iface::Hook> &prelist = ci.hooks_pre; \
|
||||
std::list<HookManagerInfo::Iface::Hook> &postlist = ci.hooks_post; \
|
||||
rettype orig_ret, override_ret, plugin_ret; \
|
||||
rettype orig_ret; \
|
||||
rettype override_ret; \
|
||||
rettype plugin_ret; \
|
||||
META_RES &cur_res = SH_GLOB_SHPTR->GetCurResRef(); \
|
||||
META_RES &prev_res = SH_GLOB_SHPTR->GetPrevResRef(); \
|
||||
META_RES &status = SH_GLOB_SHPTR->GetStatusRef(); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user