fix compile warning on linux

This commit is contained in:
Andrew Meadows 2018-04-06 13:19:24 -07:00
parent c12ae9f3f0
commit 39fcb762a7

View file

@ -128,7 +128,10 @@ const Owner Space::getOwner(int32_t proxyID) const {
}
uint8_t Space::getRegion(int32_t proxyID) const {
return _IDAllocator.checkIndex(proxyID) ? _proxies[proxyID].region : Region::INVALID;
if (_IDAllocator.checkIndex(proxyID)) {
return _proxies[proxyID].region;
}
return (uint8_t)Region::INVALID;
}
void Space::clear() {