diff --git a/Data Files/Changelog.txt b/Data Files/Changelog.txt index 60ffb68db..2147bcbfa 100644 --- a/Data Files/Changelog.txt +++ b/Data Files/Changelog.txt @@ -382,4 +382,5 @@ Revision Log Message 375 376 Manpower numbers are less insane 377 Fix crashbug with independent republic families -378 Fix bug with culturalTech option \ No newline at end of file +378 Fix bug with culturalTech option +379 Fix crashbug when holders of only titular titles are vassals \ No newline at end of file diff --git a/Source/CK2World/CK2Character.cpp b/Source/CK2World/CK2Character.cpp index 1d039fd37..283ec849a 100644 --- a/Source/CK2World/CK2Character.cpp +++ b/Source/CK2World/CK2Character.cpp @@ -1166,7 +1166,7 @@ int CK2Character::getOpinionOf(const CK2Character* other) const // Wrong Government Type (counts and above only) if (this->isDirectVassalOf(other) && this->primaryTitleString.substr(0,2) != "b_") { - if (this->primaryHolding->getType() != other->primaryHolding->getType()) + if ((this->primaryHolding != NULL) && (this->primaryHolding->getType() != other->primaryHolding->getType())) { relations += CK2Opinion::getBaseValue("opinion_count_wrong_gov_vs_liege"); }