Fixed forgotten MALLOC in g3_draw_morphing_model crashing game when rendering morphing robot (created from matcen for example)

This commit is contained in:
zicodxx 2011-11-25 11:40:41 +01:00
parent 49649ab697
commit b3329c6c86
2 changed files with 6 additions and 0 deletions

View file

@ -359,6 +359,8 @@ bool g3_draw_morphing_model(void *model_ptr,grs_bitmap **model_bitmaps,vms_angve
g3s_uvl morph_uvls[3];
int i,ntris;
MALLOC(lrgb_list, g3s_lrgb, nv);
//calculate light from surface normal
if (glow_num < 0) //no glow
{

View file

@ -1,5 +1,9 @@
D1X-Rebirth Changelog
20111125
--------
3d/interp.c: Fixed forgotten MALLOC in g3_draw_morphing_model crashing game when rendering morphing robot (created from matcen for example)
20111124
--------
main/collide.c, main/collide.h, main/fireball.c, main/game.c: Smoothed disabling of friendly fire to re-enable splash damage possible when friendly fire is disabled