Index: C:/eclipse/workspace/C4_Gamserver/java/net/sf/l2j/gameserver/cache/CrestCache.java =================================================================== --- C:/eclipse/workspace/C4_Gamserver/java/net/sf/l2j/gameserver/cache/CrestCache.java (revision 1666) +++ C:/eclipse/workspace/C4_Gamserver/java/net/sf/l2j/gameserver/cache/CrestCache.java (working copy) @@ -235,6 +235,8 @@ public boolean savePledgeCrestLarge(int newId,byte[] data) { + if (data.length > 1024) + return false; File crestFile = new File(Config.DATAPACK_ROOT, "data/crests/Crest_Large_"+newId+".bmp"); try { FileOutputStream out = new FileOutputStream(crestFile); @@ -250,6 +252,8 @@ public boolean saveAllyCrest(int newId,byte[] data) { + if (data.length > 1024) + return false; File crestFile = new File(Config.DATAPACK_ROOT, "data/crests/AllyCrest_"+newId+".bmp"); try { FileOutputStream out = new FileOutputStream(crestFile);