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

Various fixes #164

Merged
merged 3 commits into from
Jul 21, 2024
Merged

Various fixes #164

merged 3 commits into from
Jul 21, 2024

Conversation

MiranDMC
Copy link
Collaborator

Fixes problem found by Vital where it was impossible to get pointer of longstring variable.
Fixes problem found by 123nir where RZL trainer was throwing error due to declared-provided argument count missmatch in function/method call opcodes.

@MiranDMC MiranDMC requested a review from x87 July 21, 2024 01:13
@@ -542,7 +542,7 @@ class MemoryOperations
static OpcodeResult __stdcall opcode_0AC7(CLEO::CRunningScript* thread)
{
auto resultType = thread->PeekDataType();
if (!IsVariable(resultType) && IsVarString(resultType))
if (!IsVariable(resultType) && !IsVarString(resultType))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IsVariable should be called IsVarNumber

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

case DT_VAR:
case DT_VAR_ARRAY:
case DT_LVAR:
case DT_LVAR_ARRAY:

Is it done this way as some arrays related stuff? Worth consideration as it can be what else if not an number.

@MiranDMC MiranDMC merged commit 16afb29 into master Jul 21, 2024
1 check passed
@MiranDMC MiranDMC deleted the various_fixes branch July 30, 2024 20:48
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

Successfully merging this pull request may close these issues.

2 participants