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:
parent
6fdd9155b6
commit
4e574185cc
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue