Bug in CvPediaTech.py

Dertuek

Chieftain
Joined
Aug 5, 2008
Messages
55
Location
France
Hello,
It's been a long time since I played this mod.

I'm trying PAE6 and I'm unable to consult "Greek knowledge" or "Roman knowledge" in the Pedia because of a small bug in CvPediaTech.py.

In this file, you can replace the code of getTechOfCivs with :

Code:
        def getTechOfCivs(self):
                lCivs = []

                # Tech vorerst allen Civs zuweisen
                iNumCivs = gc.getNumCivilizationInfos()
                for i in range(iNumCivs):
                    if not gc.getCivilizationInfo(i).isCivilizationDisableTechs(self.iTech) and i != gc.getInfoTypeForString("CIVILIZATION_MINOR"):
                        lCivs.append(i)

                if len(lCivs) == iNumCivs - 1:
                    lCivs = []

                return lCivs
 
Top Bottom