Some cleanups. (might break build for scripts as they are a WIP)

This commit is contained in:
hondacrx
2023-10-08 10:35:31 -04:00
parent fa10b981bd
commit cda53c8e7f
208 changed files with 2266 additions and 2329 deletions
+1 -1
View File
@@ -1155,7 +1155,7 @@ namespace Game
{
GameObject go = GameObject.CreateGameObjectFromDB(guid, map, false);
// @todo find out when it is add to map
if (go)
if (go != null)
{
// @todo find out when it is add to map
if (go.IsSpawnedByDefault())
+1 -1
View File
@@ -12,7 +12,7 @@ namespace Game
{
public static void Trigger(uint gameEventId, WorldObject source, WorldObject target)
{
Cypher.Assert(source || target, "At least one of [source] or [target] must be provided");
Cypher.Assert(source != null || target != null, "At least one of [source] or [target] must be provided");
WorldObject refForMapAndZoneScript = source ?? target;