Fixes alot of little errors.

This commit is contained in:
hondacrx
2024-03-15 15:54:45 -04:00
parent b721aee6e5
commit 88f24c7791
11 changed files with 29 additions and 26 deletions
+2 -2
View File
@@ -777,7 +777,7 @@ namespace Game.Entities
lowGuid = map.GenerateLowGuid(HighGuid.Creature);
Creature creature = new();
if (creature.Create(lowGuid, map, entry, pos, null, vehId))
if (!creature.Create(lowGuid, map, entry, pos, null, vehId))
return null;
return creature;
@@ -786,7 +786,7 @@ namespace Game.Entities
public static Creature CreateCreatureFromDB(ulong spawnId, Map map, bool addToMap = true, bool allowDuplicate = false)
{
Creature creature = new();
if (creature.LoadFromDB(spawnId, map, addToMap, allowDuplicate))
if (!creature.LoadFromDB(spawnId, map, addToMap, allowDuplicate))
return null;
return creature;