Fix some crashes
This commit is contained in:
@@ -658,6 +658,7 @@ namespace Game.Chat
|
||||
data.spawnId = guid;
|
||||
data.Id = id;
|
||||
data.spawnPoint.Relocate(chr.GetTransOffsetX(), chr.GetTransOffsetY(), chr.GetTransOffsetZ(), chr.GetTransOffsetO());
|
||||
data.spawnGroupData = new();
|
||||
// @todo: add phases
|
||||
|
||||
Creature _creature = trans.CreateNPCPassenger(guid, data);
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace Game.Chat
|
||||
|
||||
List<string> FindWordGroup(uint language, uint wordLen)
|
||||
{
|
||||
return _wordsMap.LookupByKey(Tuple.Create(language, wordLen));
|
||||
return _wordsMap.LookupByKey(Tuple.Create(language, (byte)wordLen));
|
||||
}
|
||||
|
||||
public string Translate(string msg, uint language, Locale locale)
|
||||
|
||||
Reference in New Issue
Block a user