Attempt to fix coredump found by TheTrunk/Shossain

This commit is contained in:
Jonathan "Duke" Leto
2019-04-21 05:50:26 -07:00
parent a4fcce1b9c
commit 4b8ae26232

View File

@@ -361,7 +361,7 @@ public:
inline int32_t GetHeight() const inline int32_t GetHeight() const
{ {
return this->chainPower.nHeight; return this->chainPower ? this->chainPower.nHeight : 0;
} }
CDiskBlockPos GetBlockPos() const { CDiskBlockPos GetBlockPos() const {