Fixing crash on save game

Author: ammesonb, chickenbellyfinn