ALiVEOS / ALiVE.OS

ALiVE Open Source GPL v2
http://alivemod.com/
Other
157 stars 80 forks source link

Unexpected Behavior in OPCOM "getobjectivebyid" #726

Closed E-Ledere closed 3 years ago

E-Ledere commented 3 years ago

Prerequisites

Description

Running "getobjectivebyid" with the ID of an objective that doesn't exist throws an error.

Steps to Reproduce

  1. Try to get an objective by id with an id that doesn't exist, ie: [[], "getobjectivebyid", "testObj"] call ALiVE_fnc_OPCOM;
  2. Receive a script error.

Expected behavior: Command returns with nil.

Actual behavior: Command threw an error.

Arma3_x64_2021-03-22_21-08-12.rpt.txt

DavisBrown723 commented 3 years ago

Fixed with 5ce09ba37e44768a8ea7db1d018f73a438870009