EpochModTeam / Epoch

Epoch Survival Game Mode for ARMA 3
http://epochmod.com/
Other
91 stars 82 forks source link

Equality check of array against code #979

Closed mr-guard closed 6 years ago

mr-guard commented 6 years ago

https://github.com/EpochModTeam/Epoch/blob/3cdc78e2680c20c5ceca504309a852adb06a735b/Sources/epoch_server/compile/epoch_player/EPOCH_server_savePlayer.sqf#L47

Has to be ".. isEqualTo call EPOCH_defaultVars_SEPXVar.." instead

Otherwise compares code to array which is always false.

IDK if there is something more complex going on before to make this a valid check for edge cases. If so definitely needs a comment

Ignatz-HeMan commented 6 years ago

Yeah, you are right. I have fixed it in the experimental files. Many thanks! https://github.com/EpochModTeam/Epoch/commit/0d06bbfba1ee5d8a6a08d782b905359cae116c23