From bdc7e9585cbb4e2b5632a30da0238efedc2219f4 Mon Sep 17 00:00:00 2001 From: INSANEMODE Date: Fri, 30 Oct 2020 07:37:27 -0500 Subject: [PATCH] fix staff parts not glowing. replaced a for loop with a foreach to get the staff pieces for craftable_model_attach_glow to work properly. --- zm_tomb_patch/maps/mp/zm_tomb_craftables.gsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zm_tomb_patch/maps/mp/zm_tomb_craftables.gsc b/zm_tomb_patch/maps/mp/zm_tomb_craftables.gsc index 01e4dfb..2b97ba9 100644 --- a/zm_tomb_patch/maps/mp/zm_tomb_craftables.gsc +++ b/zm_tomb_patch/maps/mp/zm_tomb_craftables.gsc @@ -418,7 +418,7 @@ craftable_add_glow_fx() //checked partially changed to match cerberus output */ return; } - for ( i = 0; i < s_craftable.a_piecestubs.size; i++ ) + foreach ( s_piece in s_craftable.a_piecestubs ) //replaced with a foreach to get each s_piece, which is needed for craftable_model_attach_glow to work. { if ( s_piece.piecename == "gem" ) {