Skip to content

Commit 3a89301

Browse files
authored
Merge pull request #432 from YoYoGames/gmb-4580-layer_background_index-bug
Fixes bug on `layer_background_index` function
2 parents d044b9e + ab5b9b1 commit 3a89301

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/functions/Function_Layers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2588,7 +2588,7 @@ function layer_background_index( arg1,arg2)
25882588
if (el != null)
25892589
{
25902590
var image_index = yyGetInt32(arg2);
2591-
var max_index = sprite_get_number(el.m_pBackground.image_index);
2591+
var max_index = sprite_get_number(el.m_pBackground.index);
25922592

25932593
el.m_pBackground.image_index = fwrap(image_index, max_index);
25942594
}

0 commit comments

Comments
 (0)