Browse Source

Fix EnterRegion script to send the right region type

Emagi 1 year ago
parent
commit
575951bac5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      EQ2/source/WorldServer/Spawn.cpp

+ 1 - 1
EQ2/source/WorldServer/Spawn.cpp

@@ -4464,7 +4464,7 @@ int32 Spawn::InsertRegionToSpawn(Region_Node* node, ZBSP_Node* bsp_root, WaterRe
 	status.regionType = regionType;
 	int32 returnValue = 0;
 	if(in_region) {
-		lua_interface->RunRegionScript(node->regionScriptName, "EnterRegion", GetZone(), this, RegionTypeUntagged, &returnValue);
+		lua_interface->RunRegionScript(node->regionScriptName, "EnterRegion", GetZone(), this, regionType, &returnValue);
 	}
 	status.timerTic = returnValue;
 	status.lastTimerTic = returnValue ? Timer::GetCurrentTime2() : 0;