Explorar el Código

made sure house instances only use instance based spawns (forgot a flag check in the DB!)

Support of issue #124
Image hace 4 años
padre
commit
57aee8d21a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      EQ2/source/WorldServer/WorldDatabase.cpp

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

@@ -6722,7 +6722,7 @@ int32 WorldDatabase::FindHouseInstanceSpawn(Spawn* spawn)
 
 	database_new.Select(&result, "SELECT id\n"
 		" FROM spawn\n"
-		" WHERE model_type = %u limit 1",
+		" WHERE model_type = %u and is_instanced_spawn=1 limit 1",
 		spawn->GetModelType());
 
 	if (result.GetNumRows() > 0 && result.Next()) {