Skip to content

Commit fc10205

Browse files
authored
make legacy particle spews more robust (scp-fs2open#7023)
If a pspew specifies a single-frame image, be sure that it is loaded correctly. Fixes a particle crash in Inferno.
1 parent 877373f commit fc10205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/weapon/weapons.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ static particle::ParticleEffectHandle convertLegacyPspewBuffer(const pspew_legac
776776
IS_VEC_NULL(&pspew_buffer.particle_spew_offset) ? std::nullopt : std::optional(pspew_buffer.particle_spew_offset), //Local offset
777777
::util::UniformFloatRange(pspew_buffer.particle_spew_lifetime), //Lifetime
778778
::util::UniformFloatRange(pspew_buffer.particle_spew_radius), //Radius
779-
hasAnim ? bm_load_animation(pspew_buffer.particle_spew_anim.c_str()) : particle::Anim_bitmap_id_smoke)); //Bitmap
779+
hasAnim ? bm_load_either(pspew_buffer.particle_spew_anim.c_str()) : particle::Anim_bitmap_id_smoke)); //Bitmap or Anim
780780
}
781781

782782
/**

0 commit comments

Comments
 (0)