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
Error in script error message for type mismatch #7966
Comments
I tried both |
He's not specified, but from memory @James103 always runs a Win32 build for whatever reason. Could it be specific to that somehow? |
@glx22 What build did you attempt reproduction on (include the OpenTTD version, the OS, and whether it's 32-bit or 64-bit)? |
I tried with 64-bit debug build of current master. But I can retry with 32-bit. Edit: Ok bug confirmed for 32-bit. |
The following line is the root cause of the issue:
|
Yes, it's because |
Version of OpenTTD
Since d7a928a-windows-win32 (Windows 7 Ultimate)
Expected result
"Your script made an error: parameter N has an invalid type A, expected: E"
Actual result
"Your script made an error: parameter N has an invalid type (null), expected: A"
Where,
Steps to reproduce
ScriptController.Sleep([1,2,3])
It will generate the above error with N = 1, A = "array", E = "integer".
ScriptController.Sleep(2e9)
It will generate the above error with N = 1, A = "float", E = "integer".
Note
To anyone trying to reproduce this issue, please comment what result you got, as well as the version of OpenTTD, the OS, and whether it's 32-bit or 64-bit.
The text was updated successfully, but these errors were encountered: