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

修正 login 脚本指令返回值不正确的问题 (感谢 "差记性的小北" 反馈) #757

Merged
merged 1 commit into from
Feb 18, 2024

Conversation

CairoLee
Copy link
Contributor

问题描述

使用 login 指令成功拉起一个角色之后,脚本指令的返回值是 0

预期结果

成功拉起角色的话,返回值应该是 1 才对

问题分析

脚本函数处理代码中,提前使用 pushint 压入一个默认值,并在后续流程中根据需要 pushint 其他值这种做法并不能被支持。换而言之,在所有可能得代码分支中,只能出现一次 pushint,即便出现多次程序也只认第一次

@CairoLee CairoLee merged commit 2bdf56b into develop Feb 18, 2024
37 checks passed
@CairoLee CairoLee deleted the hotfix/scriptcmd_login branch February 18, 2024 10:34
@CairoLee CairoLee restored the hotfix/scriptcmd_login branch October 27, 2024 13:19
@CairoLee CairoLee deleted the hotfix/scriptcmd_login branch October 27, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants