diff --git a/src/game_api/script/lua_vm.cpp b/src/game_api/script/lua_vm.cpp index 58b6bbd02..61397577f 100644 --- a/src/game_api/script/lua_vm.cpp +++ b/src/game_api/script/lua_vm.cpp @@ -1758,7 +1758,7 @@ end /// Returns STRINGID of the new string lua["add_string"] = add_string; - /// Get localized name of an entity, pass `fallback_strategy` as `true` to fall back to the `ENT_TYPE.*` enum name + /// Get localized name of an entity from the journal, pass `fallback_strategy` as `true` to fall back to the `ENT_TYPE.*` enum name /// if the entity has no localized name lua["get_entity_name"] = [](ENT_TYPE type, sol::optional fallback_strategy) -> std::u16string { diff --git a/src/game_api/search.cpp b/src/game_api/search.cpp index 98c7474a7..c0fc44f13 100644 --- a/src/game_api/search.cpp +++ b/src/game_api/search.cpp @@ -1582,9 +1582,9 @@ std::unordered_map g_address_rules{ { "get_entity_name"sv, PatternCommandBuffer{} - .find_inst("\x44\x21\xe2\x4c\x8b\x91\x78\x02\x00\x00"sv) - .at_exe() - .function_start(0xff), + .find_after_inst("48 89 F2 66 41 B8 80 00 45 31 C9"_gh) + .decode_call() + .at_exe(), }, { "construct_soundmeta"sv,