Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: draw unit image comparing arrays not possible #323

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/scr_draw_unit_image/scr_draw_unit_image.gml
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ function scr_draw_unit_image(_background=false){
for (var _right_left = 1; _right_left <= 2; _right_left++) {
// Draw bionic arms
var _bionic_arm = get_body_data("bionic", _right_left == 1 ? "right_arm" : "left_arm");
if (arm_variant[_right_left] == 1 && _bionic_options != [] && !_hide_bionics && _bionic_arm) {
if (arm_variant[_right_left] == 1 && array_length(_bionic_options) && !_hide_bionics && _bionic_arm) {
var _bionic_variant = _bionic_arm.variant % array_length(_bionic_options);
var _bionic_spr_index = 0;
var _bionic_spr = _bionic_options[_bionic_variant];
Expand Down
Loading