Fixes NPE (#312)
- [X] Fixes issue with world load where items modify mobiles before mobiles are initialized Bumps release version
This commit is contained in:
parent
0ec30e22d1
commit
b0d8dd42c0
2 changed files with 8 additions and 13 deletions
|
|
@ -367,12 +367,12 @@ namespace Server
|
|||
IIndexInfo<Serial> mobileIndexInfo = new EntityTypeIndex("Mobiles");
|
||||
IIndexInfo<Serial> guildIndexInfo = new EntityTypeIndex("Guilds");
|
||||
|
||||
Items = LoadIndex(itemIndexInfo, out items);
|
||||
Mobiles = LoadIndex(mobileIndexInfo, out mobiles);
|
||||
Items = LoadIndex(itemIndexInfo, out items);
|
||||
Guilds = LoadIndex(guildIndexInfo, out guilds);
|
||||
|
||||
LoadData(itemIndexInfo, items);
|
||||
LoadData(mobileIndexInfo, mobiles);
|
||||
LoadData(itemIndexInfo, items);
|
||||
LoadData(guildIndexInfo, guilds);
|
||||
|
||||
EventSink.InvokeWorldLoad();
|
||||
|
|
@ -464,8 +464,8 @@ namespace Server
|
|||
IIndexInfo<Serial> mobileIndexInfo = new EntityTypeIndex("Mobiles");
|
||||
IIndexInfo<Serial> guildIndexInfo = new EntityTypeIndex("Guilds");
|
||||
|
||||
WriteEntities(itemIndexInfo, Items, ItemTypes);
|
||||
WriteEntities(mobileIndexInfo, Mobiles, MobileTypes);
|
||||
WriteEntities(itemIndexInfo, Items, ItemTypes);
|
||||
WriteEntities(guildIndexInfo, Guilds, GuildTypes);
|
||||
|
||||
watch.Stop();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue