If you're going to change the ammo's base class, you need to edit its entries in itypedef.cpp as well.