mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Update client/windows/GUIClasses.cpp
Co-authored-by: Nordsoft91 <nordsoft@yahoo.com>
This commit is contained in:
		| @@ -501,8 +501,8 @@ CTavernWindow::CTavernWindow(const CGObjectInstance * TavernObj, const std::func | ||||
| 	} | ||||
| 	if(LOCPLINT->castleInt) | ||||
| 		CCS->videoh->open(LOCPLINT->castleInt->town->town->clientInfo.tavernVideo); | ||||
| 	else if(dynamic_cast<const CGTownInstance *>(TavernObj)) | ||||
| 		CCS->videoh->open(dynamic_cast<const CGTownInstance *>(TavernObj)->town->clientInfo.tavernVideo); | ||||
| 	else if(const auto * townObj = dynamic_cast<const CGTownInstance *>(TavernObj)) | ||||
| 		CCS->videoh->open(townObj->town->clientInfo.tavernVideo); | ||||
| 	else | ||||
| 		CCS->videoh->open(VideoPath::builtin("TAVERN.BIK")); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user