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.
This commit is contained in:
INSANEMODE 2020-10-30 07:37:27 -05:00 committed by GitHub
parent 93f1071e7b
commit bdc7e9585c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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" )
{