fixed AI dmg bug, fixed crash bug related to stf names

This commit is contained in:
Light2
2014-03-28 02:23:07 +01:00
parent 06c0df11c3
commit eece94c7cb
5 changed files with 6 additions and 37 deletions
@@ -93,6 +93,7 @@ public class CreatureMessageBuilder extends ObjectMessageBuilder {
buffer.putFloat(1);
buffer.put(getAsciiString(creature.getStfFilename()));
buffer.putInt(0);
if(creature.getStfName() == null) creature.setStfName("");
buffer.put(getAsciiString(creature.getStfName()));
if (creature.getCustomName() == null) { creature.setCustomName(""); }//Not all CreatureObjects have CustomName (Shuttles)
buffer.put(getUnicodeString(creature.getCustomName()));