clintbellanger / flare

Free Libre Action Roleplaying Engine
http://clintbellanger.net/rpg/
GNU General Public License v3.0
166 stars 41 forks source link

Fix crash when loading save file with transformed avatar #871

Closed dorkster closed 12 years ago

dorkster commented 12 years ago

Closes #870

igorko commented 12 years ago

@dorkster I'm not sure if we need that. img_gfx is resized to 4 inside Avatar::init. Problem is that body still = -1. Maybe we should remove img_gfx[] from transform() at all? I don't see any reason to use it there.

dorkster commented 12 years ago

You're right. I thought we needed it for getting the creature's sprite, but I guess we don't.

igorko commented 12 years ago

Also I have noticed that untransform_triggered is not used any more since https://github.com/clintbellanger/flare/commit/edf7abcc7b40e2a0207929794cf40f193fb79b2f. I think we can remove it's appearance