Decompile fn_09144 (AddIsTag)

Batch #14662 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_09144 AddIsTag: logic confirmed by peer review

Peer-reviewed-by: secret, Tanke, raiken
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-07 13:09:18 +00:00
commit 4e574185cc

View file

@ -467,7 +467,7 @@ int AddIsTag(lua_State* state) {
if (!lua_isnumber(state, -1)) { lua_pushboolean(state, 0); lua_pushstring(state, "1 argment is must number"); return 2; }
const int id = static_cast<int>(lua_tonumber(state, -2));
g_itemTagOwner->m_entries[id].searchable = static_cast<int>(lua_tonumber(state, -1)) != 0;
g_itemTagOwner->SetSearchable(id, static_cast<int>(lua_tonumber(state, -1)) != 0);
lua_pushboolean(state, 1);
lua_pushstring(state, "good");
return 2;