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:
s0600204
2018-02-22 20:22:45 +00:00
parent fd14419bc0
commit 46114e00c8
@@ -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)