mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* bug fix
This commit is contained in:
parent
4131a455a2
commit
576e9dfd45
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ void RegionMap::setHomeRegion(const RegionEntry* home) {
|
|||
}
|
||||
|
||||
RegionEntry* RegionMap::getDefaultRegion() {
|
||||
return findById(default_id);
|
||||
return default_id == 0 ? NULL : findById(default_id);
|
||||
}
|
||||
|
||||
void RegionMap::setDefaultRegion(const RegionEntry* def) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue