Skip to content

Commit

Permalink
Fixed compiler bug (thanks misomosi)
Browse files Browse the repository at this point in the history
  • Loading branch information
Freeeaky committed May 23, 2015
1 parent 67113a6 commit d7f25aa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/GTALua/API.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// =================================================================================
#include "Includes.h"
#include "GTALua.h"
#include "ScriptEngine/ScriptEngine.h"
#include "Memory/Memory.h"
#include "lua/Lua.h"
#include "thirdparty/ScriptHookV/ScriptHookV.h"
Expand Down
2 changes: 1 addition & 1 deletion src/GTALua/ScriptBinds/LB_ScriptHookV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void ScriptBinds::ScriptHookBind::Bind()
luabind::def("InitNative", LB_InitNative),
luabind::def("NativePushInt", ScriptHook::PushValue<__int32>),
luabind::def("NativePushFloat", ScriptHook::PushValue<float>),
luabind::def("NativePushVector", ScriptHook::PushValue<rage::CVector>),
luabind::def("NativePushVector", ScriptHook::PushVector),
luabind::def("NativePushBool", ScriptHook::PushValue<bool>),
luabind::def("NativePushString", ScriptHook::PushValue<const char*>),
luabind::def("NativePushMemoryBlock", ScriptHook::PushMemory),
Expand Down
1 change: 1 addition & 0 deletions src/GTALua/ScriptBinds/LB_ScriptThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "GTALua.h"
#include "lua/Lua.h"
#include "ScriptBinds.h"
#include "ScriptEngine/ScriptEngine.h"
#include "thirdparty/ScriptHookV/ScriptHookV.h"
#include "UTIL/UTIL.h"
using namespace ScriptBinds::ScriptThread;
Expand Down
6 changes: 6 additions & 0 deletions src/GTALua/thirdparty/ScriptHookV/ScriptHookV.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ namespace ScriptHook
*reinterpret_cast<T *>(&val64) = val;
NativePush64(val64);
}
static inline void PushVector(rage::CVector vec)
{
PushValue(vec.x);
PushValue(vec.y);
PushValue(vec.z);
}

// Call Wrapper
template <typename T>
Expand Down

0 comments on commit d7f25aa

Please sign in to comment.