Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slk_lib中对_max_level的优化 #221

Open
Moon201-Vampire opened this issue Sep 10, 2023 · 3 comments
Open

slk_lib中对_max_level的优化 #221

Moon201-Vampire opened this issue Sep 10, 2023 · 3 comments

Comments

@Moon201-Vampire
Copy link

A88L2)3HZPH~_T4F2Y5
image

代码本身在1.31版本的编辑器上运行是正常的,但是在1.32会在这里出现._max_level类型为string而不是number,从而引发报错.

@Moon201-Vampire
Copy link
Author

这个问题根本原因,我认为是书写不够规范.只是代码层面,应该可以优化调整.但相对来说,这边代码我看的有些迷糊.我准备在这里对_max_level进行一次强制转换,不知是否可行.

1 similar comment
@Moon201-Vampire
Copy link
Author

这个问题根本原因,我认为是书写不够规范.只是代码层面,应该可以优化调整.但相对来说,这边代码我看的有些迷糊.我准备在这里对_max_level进行一次强制转换,不知是否可行.

@luciouskami
Copy link
Contributor

用C++版本的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants