Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Commit

Permalink
Merge with bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Idhrendur committed Feb 19, 2013
2 parents 2464f1d + c3c6385 commit cd8af89
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Data Files/Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ Revision Log Message
307 HRE Electors
308 Add Jerusalem1401 save (from 1.09)
309 Better warning message when unable to determine culture or religion.


310 Fix crash bug from HRE title being destroyed
311 Fix resaving bug
312 Process many things only after assigning tags
313 Solve some cases of governments not being assigned
314 More government adjustments
Expand Down
3 changes: 3 additions & 0 deletions Source/CK2World/CK2World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ CK2World::CK2World()
dynasties.clear();
characters.clear();
traits.clear();
potentialTitles.clear();
titles.clear();
hreTitle = NULL;
provinces.clear();
baronies.clear();
wars.clear();
}


Expand Down
2 changes: 1 addition & 1 deletion Source/EU3World/EU3Country.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ void EU3Country::output(FILE* output)
{
fprintf(output, "\tgalley=\"%s\"\n", galley.c_str());
}
if(infantry != "")
if(transport != "")
{
fprintf(output, "\ttransport=\"%s\"\n", transport.c_str());
}
Expand Down
9 changes: 6 additions & 3 deletions Source/EU3World/EU3World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ EU3World::EU3World(CK2World* _srcWorld, EU3Tech* _techData)
options[LUCKY_NATIONS] = 2;
}

diplomacy = new EU3Diplomacy();

diplomacy = new EU3Diplomacy();
hreEmperor = NULL;
japaneseEmperor = NULL;
daimyos.clear();
shogun = NULL;
Expand All @@ -244,7 +244,10 @@ void EU3World::output(FILE* output)
fprintf(output, "}\n");
fprintf(output, "start_date=\"%s\"\n", startDate.toString().c_str());
outputTempHeader2(output);
fprintf(output, "emperor=\"%s\"\n", hreEmperor->getTag().c_str());
if (hreEmperor != NULL)
{
fprintf(output, "emperor=\"%s\"\n", hreEmperor->getTag().c_str());
}
fprintf(output, "imperial_influence=20.000\n");
fprintf(output, "internal_hre_cb=yes\n");
for (map<int, EU3Province*>::iterator i = provinces.begin(); i != provinces.end(); i++)
Expand Down

0 comments on commit cd8af89

Please sign in to comment.