File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ namespace lua::locals
1010 static std::remove_pointer_t <T> null{};
1111 auto thread = big::gta_util::find_script_thread (rage::joaat (script));
1212 if (thread)
13- return big::script_local (thread-> m_stack , index).as <T>();
13+ return big::script_local (thread, index).as <T>();
1414
1515 return &null;
1616 }
Original file line number Diff line number Diff line change 99 */
1010
1111#include " script_local.hpp"
12+ #include " gta_util.hpp"
1213
13- #include " common.hpp"
14+ // clang-format off
15+ #include " util/header_wrappers/include_as_enhaced.hpp"
1416#include " gta/script_thread.hpp"
15- #include " pointers.hpp"
17+ #include " util/header_wrappers/include_as_legacy.hpp"
18+ #include " gta/script_thread.hpp"
19+ #include " util/header_wrappers/clear_include.hpp"
20+ // clang-format on
21+
1622
1723namespace big
1824{
1925 script_local::script_local (rage::scrThread* thread, std::size_t index) :
20- m_index (index),
21- m_stack (thread->m_stack)
26+ m_index (index)
2227 {
28+ m_stack = AUTO_CROSS_ACCESS (rage::scrThread, thread, ->m_stack );
2329 }
2430 script_local::script_local (PVOID stack, std::size_t index) :
2531 m_index (index),
You can’t perform that action at this time.
0 commit comments