Port batch 1 missing functions and add missing luaL_error returns found by semdiff
Batch 1: weather templates, client console commands, loading screen paths, glue script events, AddOns/AccountData/Battlenet getters, simple camera and camera vehicle offsets, Warden module path, BLL loader, FFX effects, Grunt and GruntLogin matrix/file handlers, CGlueMgr char customize/faction change/ kick reason. semdiff: 251 Lua script functions called luaL_error without the return 0 that 12340 has after every call site (each confirmed per call site in the binary). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
@@ -702,6 +702,7 @@ static int32_t Script_scrub(lua_State* L) {
|
||||
static int32_t Script_strlenutf8(lua_State* L) {
|
||||
if (!lua_isstring(L, 1)) {
|
||||
luaL_error(L, "Usage: strlenutf8(string)");
|
||||
return 0;
|
||||
}
|
||||
|
||||
lua_pushnumber(L, SStrLenUTF8(lua_tostring(L, 1)));
|
||||
|
||||
Reference in New Issue
Block a user