更新DPS Hook时返回值false 被忽略的问题

This commit is contained in:
lenheart
2025-12-05 14:05:28 +08:00
parent a3b2ae9cc4
commit 19a6add83e
2 changed files with 25 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ function _Hook_Enter_Currency_Func_(args, TableObj) {
local Ret = null;
foreach(Func in TableObj) {
local Buf = Func(args);
if (Buf) Ret = Buf;
if (Buf != null) Ret = Buf;
}
return Ret;
}
@@ -18,7 +18,7 @@ function _Hook_Leave_Currency_Func_(args, TableObj) {
local Ret = null;
foreach(Func in TableObj) {
local Buf = Func(args);
if (Buf) Ret = Buf;
if (Buf != null) Ret = Buf;
}
return Ret;
}