Closed Coryf88 closed 1 year ago
Aparrently was fixed at some point. Added explicit test for this scenario in https://github.com/SQFvm/runtime/commit/572083a7cd7c9176b75a46c2328a2b4e4bf53065.
Please reopen if still affected with latest development release
Describe the bug
configFile select 0
returnsCfgPatches
, as expected.configFile select 1
returnsAddon2
configFile select 2
returnsurl
(configFile >> "CfgPatches") select 0
returnsCfgPatches
(configFile >> "CfgPatches") select 1
returnsAddon2
(configFile >> "CfgPatches") select 2
throwsThe requested index two exceeds the available range of two.
, as expected.To Reproduce Steps to reproduce the behavior:
sqfvm.exe --automated --config "class CfgPatches {class Addon {};};" --sqf "(configFile >> ""CfgPatches"") select 0"
[INF] Context droped with return value 'CfgPatches'.
Expected behavior
[INF] Context droped with return value 'Addon'.
Screenshots N/A
Additional context N/A