Skip to content

Error when buying vehicles with no textures defined #698

@blackfisch

Description

@blackfisch

Expected behaviour

vehicle spawns, everything good

Actual behaviour

script error; undefined variable in expression

Steps to reproduce the behaviour

  1. Start a server
  2. buy a vehicle without a texture selection combobox
  3. check RPT
    20200602005200_1

RPT and/or extDB3 logs (if applicable)

1:54:56 B_Truck_01_fuel_F: mirror_l_hide - unknown animation source mirror_l_hide
 1:54:56 Error in expression <res") select _index) param [2,[]]);
if (_textures isEqualTo []) exitWith {};

_v>
 1:54:56   Error position: <_textures isEqualTo []) exitWith {};

_v>
 1:54:56   Error Undefined variable in expression: _textures
 1:54:56 File core\vehicle\fn_colorVehicle.sqf [life_fnc_colorVehicle]..., line 86

Mission version: 6.0.0

Branch: master

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions