Skip to content

Commit

Permalink
Uncomment "GetValueHolder" code for CProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
wopss committed Sep 25, 2023
1 parent 9176d99 commit 0365b61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/RED4ext/Scripting/CProperty.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <RED4ext/InstanceType.hpp>
#include <RED4ext/RTTITypes.hpp>
#include <RED4ext/Relocation.hpp>
//#include <RED4ext/Scripting/IScriptable.hpp>
#include <RED4ext/Scripting/IScriptable.hpp>

namespace RED4ext
{
Expand Down Expand Up @@ -108,8 +108,8 @@ struct CProperty
void* holder = aInstance;
if (flags.inValueHolder)
{
/*auto scriptable = static_cast<IScriptable*>(aInstance);
holder = scriptable->GetValueHolder();*/
auto scriptable = static_cast<IScriptable*>(aInstance);
holder = scriptable->GetValueHolder();
}

return reinterpret_cast<T*>(reinterpret_cast<uintptr_t>(holder) + valueOffset);
Expand Down

0 comments on commit 0365b61

Please sign in to comment.