From 250c877aba8c8b80819f1e6d1a6306d28e154e45 Mon Sep 17 00:00:00 2001 From: idhrendur Date: Tue, 30 Apr 2013 19:16:03 -0700 Subject: [PATCH] Fix bug with culturalTech option --- Data Files/Changelog.txt | 3 ++- Source/EU3World/EU3Country.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Data Files/Changelog.txt b/Data Files/Changelog.txt index bc5b3e79b..60ffb68db 100644 --- a/Data Files/Changelog.txt +++ b/Data Files/Changelog.txt @@ -381,4 +381,5 @@ Revision Log Message 374 375 376 Manpower numbers are less insane -377 Fix crashbug with independent republic families \ No newline at end of file +377 Fix crashbug with independent republic families +378 Fix bug with culturalTech option \ No newline at end of file diff --git a/Source/EU3World/EU3Country.cpp b/Source/EU3World/EU3Country.cpp index 397b73be3..2a7f03378 100644 --- a/Source/EU3World/EU3Country.cpp +++ b/Source/EU3World/EU3Country.cpp @@ -774,7 +774,8 @@ void EU3Country::determineLearningScore() void EU3Country::determineTechScore() { - int numProvinces = 0; + int numProvinces = 0; + techScore = 0; for (vector::iterator provinceItr = provinces.begin(); provinceItr < provinces.end(); provinceItr++) { vector srcProvinces = (*provinceItr)->getSrcProvinces();