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

Commit

Permalink
Autogenerated tags must be three characters long
Browse files Browse the repository at this point in the history
  • Loading branch information
Idhrendur committed Jun 9, 2013
1 parent 0f1cf96 commit 1f365c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Data Files/Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -436,4 +436,5 @@ Revision Log Message
429 Update CK2 version information
430 Update test configurations
431 Fix typos in converter mod
432 Eliminate signed/unsigned mismatch in CK2Version
432 Eliminate signed/unsigned mismatch in CK2Version
433 Autogenerated tags must be three characters long
4 changes: 4 additions & 0 deletions Source/EU3World/EU3World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1995,6 +1995,10 @@ void EU3World::addModCountries(const vector<EU3Country*>& modCountries, set<stri

// determine tag
string potentialTag = boost::to_upper_copy(titleString.substr(2,3));
while (potentialTag.size() < 3)
{
potentialTag += '_';
}
string tag;

map<string, EU3Country*>::iterator itr = countries.find(potentialTag);
Expand Down

0 comments on commit 1f365c6

Please sign in to comment.