mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 23:17:02 +02:00
Fix JurisdictionMap not initializing correctly
This commit is contained in:
parent
47d897f669
commit
68665e6b25
1 changed files with 8 additions and 1 deletions
|
@ -64,7 +64,14 @@ JurisdictionMap::JurisdictionMap(const JurisdictionMap& other) : _rootOctalCode(
|
||||||
}
|
}
|
||||||
|
|
||||||
void JurisdictionMap::copyContents(const OctalCodePtr& rootCodeIn, const OctalCodePtrList& endNodesIn) {
|
void JurisdictionMap::copyContents(const OctalCodePtr& rootCodeIn, const OctalCodePtrList& endNodesIn) {
|
||||||
init(rootCodeIn, endNodesIn);
|
OctalCodePtr rootCode = rootCodeIn;
|
||||||
|
if (!rootCode) {
|
||||||
|
rootCode = createOctalCodePtr(1);
|
||||||
|
*rootCode = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
OctalCodePtrList emptyEndNodes;
|
||||||
|
init(rootCode, endNodesIn);
|
||||||
}
|
}
|
||||||
|
|
||||||
void JurisdictionMap::copyContents(const JurisdictionMap& other) {
|
void JurisdictionMap::copyContents(const JurisdictionMap& other) {
|
||||||
|
|
Loading…
Reference in a new issue