mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-27 22:33:06 +00:00
Pass appropriate techcode to Template Viewer when clicking on one of a tech-pair in the session gui
(Instead of the content of the tech-pair's pairing tech) Reported by: wowgetoffyourcellphone Report: https://wildfiregames.com/forum/index.php?/topic/24027-viewer/ Refs: https://code.wildfiregames.com/D297 This was SVN commit r21325.
This commit is contained in:
@@ -801,7 +801,7 @@ g_SelectionPanels.Research = {
|
||||
for (let selectedEntity of data.unitEntStates)
|
||||
if (selectedEntity.id == data.item.researchFacilityId)
|
||||
researcherTemplate = selectedEntity.template;
|
||||
showTemplateDetails(data.item.tech, GetTemplateData(researcherTemplate).nativeCiv);
|
||||
showTemplateDetails(tech, GetTemplateData(researcherTemplate).nativeCiv);
|
||||
};
|
||||
|
||||
if (data.item.tech.pair)
|
||||
|
||||
Reference in New Issue
Block a user