This commit is contained in:
lenheart 2024-06-17 11:01:39 +08:00
parent c073a4cb85
commit 8f1e8cba88
4 changed files with 6 additions and 1 deletions

View File

@ -146,7 +146,12 @@ static SQInteger CUser_SetCharacLevel(HSQUIRRELVM v)
sq_getuserpointer(v, 2, &P);
SQInteger Value;
sq_getinteger(v, 3, &Value);
((__SetUserByInt)0x0867a95c)((void *)P, Value);
void *ptr = reinterpret_cast<void *>(0x0);
CallUser<int>(0x822FC8E, P, 1);
CallUser<int>(0x0858EFDE, ptr, P, Value);
CallUser<int>(0x822FC8E, P, 0);
return 0;
}
static SQInteger CUser_GetCharacGrowType(HSQUIRRELVM v)