mirror of
https://github.com/Wack0/IFPSTools.NET.git
synced 2025-06-18 10:45:36 -04:00
asm: fix the case for non-exported function that returns a value
This commit is contained in:
parent
301c583ce2
commit
54404a1fa6
@ -542,7 +542,7 @@ namespace IFPSAsmLib
|
||||
{
|
||||
if (value.StartsWith(Constants.VARIABLE_ARG_PREFIX)) {
|
||||
if (!int.TryParse(value.Substring(Constants.VARIABLE_ARG_PREFIX.Length), out var argIdx)) return null;
|
||||
argIdx--;
|
||||
if (function.ReturnArgument == null) argIdx--;
|
||||
if (argIdx < 0) return null;
|
||||
return function.CreateArgumentVariable(argIdx);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user