Browse Source

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

Support of issue #124
Image 3 years ago
parent
commit
57aee8d21a
1 changed files with 1 additions and 1 deletions
  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()) {