Merge branch 'uniquetid_overflow_fix' of https://github.com/edward-san/zdoom
This commit is contained in:
commit
af3e619232
2 changed files with 11 additions and 7 deletions
|
|
@ -4934,7 +4934,7 @@ int DLevelScript::CallFunction(int argCount, int funcIndex, SDWORD *args, const
|
|||
break;
|
||||
|
||||
case ACSF_UniqueTID:
|
||||
return P_FindUniqueTID(argCount > 0 ? args[0] : 0, argCount > 1 ? args[1] : 0);
|
||||
return P_FindUniqueTID(argCount > 0 ? args[0] : 0, (argCount > 1 && args[1] >= 0) ? args[1] : 0);
|
||||
|
||||
case ACSF_IsTIDUsed:
|
||||
return P_IsTIDUsed(args[0]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue