瀏覽代碼

Update LuaInterface.cpp

Image 4 年之前
父節點
當前提交
9f92e1f5f1
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      EQ2/source/WorldServer/LuaInterface.cpp

+ 6 - 2
EQ2/source/WorldServer/LuaInterface.cpp

@@ -512,7 +512,11 @@ void LuaInterface::AddSpawnPointers(LuaSpell* spell, bool first_cast, bool preca
 		SetSpawnValue(spell->state, temp_spawn);
 	else {
 		if(spell->caster && spell->initial_target)
-			SetSpawnValue(spell->state, spell->caster->GetZone()->GetSpawnByID(spell->initial_target));
+		{
+			// easier to debug target id as ptr
+			Spawn* new_target = spell->caster->GetZone()->GetSpawnByID(spell->initial_target);
+			SetSpawnValue(spell->state, new_target);
+		}
 		else if(spell->caster && spell->caster->GetTarget())
 			SetSpawnValue(spell->state, spell->caster->GetTarget());
 		else
@@ -2063,4 +2067,4 @@ LUASpellWrapper::LUASpellWrapper() {
 
 bool LUASpellWrapper::IsSpell() {
 	return true;
-}
+}