Skip to content

Commit f08ae3b

Browse files
committed
修正 SetLogCallback 函数中的日志回调函数分配错误
1 parent 972396d commit f08ae3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unity/native/puerts/source/Puerts.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ PESAPI_MODULE_EXPORT pesapi_registry_api* GetRegisterApi()
4141
PESAPI_MODULE_EXPORT void SetLogCallback(LogCallback Log, LogCallback LogWarning, LogCallback LogError)
4242
{
4343
GLogCallback = Log;
44-
GLogWarningCallback = LogError;
45-
GLogErrorCallback = LogWarning;
44+
GLogWarningCallback = LogWarning;
45+
GLogErrorCallback = LogError;
4646
}
4747

4848
#ifdef __cplusplus

0 commit comments

Comments
 (0)