소스 검색

Fixes hota prisons replacing every h3 prison on h3m maps

Ivan Savenko 1 년 전
부모
커밋
c87e60740b
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      lib/mapObjects/CGHeroInstance.cpp

+ 1 - 2
lib/mapObjects/CGHeroInstance.cpp

@@ -607,10 +607,9 @@ void CGHeroInstance::pickRandomObject(CRandomGenerator & rand)
 
 	// to find object handler we must use heroClass->id
 	// after setType subID used to store unique hero identify id. Check issue 2277 for details
+	// exclude prisons which should use appearance as set in map, via map editor or RMG
 	if (ID != Obj::PRISON)
 		setType(ID, type->heroClass->getIndex());
-	else
-		setType(ID, 0);
 
 	this->subID = oldSubID;
 }