From 4b8ae2623231e15b7a997faa12b448b5f0e328a3 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Sun, 21 Apr 2019 05:50:26 -0700 Subject: [PATCH] Attempt to fix coredump found by TheTrunk/Shossain --- src/chain.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chain.h b/src/chain.h index d810ed4cb..46ad8f9ad 100644 --- a/src/chain.h +++ b/src/chain.h @@ -361,7 +361,7 @@ public: inline int32_t GetHeight() const { - return this->chainPower.nHeight; + return this->chainPower ? this->chainPower.nHeight : 0; } CDiskBlockPos GetBlockPos() const {