mirror of
https://github.com/fedddddd/iw5-gsc-utils.git
synced 2025-07-03 17:51:55 +00:00
Fixes for pluto update
This commit is contained in:
@ -27,7 +27,7 @@ namespace gsc
|
||||
{
|
||||
if (function.second == id)
|
||||
{
|
||||
return function.first;
|
||||
return function.first.data();
|
||||
}
|
||||
}
|
||||
|
||||
@ -42,7 +42,7 @@ namespace gsc
|
||||
{
|
||||
if (function.second == id)
|
||||
{
|
||||
return function.first;
|
||||
return function.first.data();
|
||||
}
|
||||
}
|
||||
|
||||
@ -251,7 +251,8 @@ namespace gsc
|
||||
const auto index = function_map_start++;
|
||||
|
||||
functions[index] = func;
|
||||
(*game::plutonium::function_map_rev)[name] = index;
|
||||
const auto name_view = utils::memory::get_allocator()->duplicate_string(name);
|
||||
(*game::plutonium::function_map_rev)[name_view] = index;
|
||||
}
|
||||
}
|
||||
|
||||
@ -262,7 +263,8 @@ namespace gsc
|
||||
const auto index = method_map_start++;
|
||||
|
||||
methods[index] = func;
|
||||
(*game::plutonium::method_map_rev)[name] = index;
|
||||
const auto name_view = utils::memory::get_allocator()->duplicate_string(name);
|
||||
(*game::plutonium::method_map_rev)[name_view] = index;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user