From 475b2239395716ea313b4458719a44ff1d2701ba Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 30 Jul 2018 17:47:25 +0200 Subject: [PATCH] fixed a crash bug with displaying hypersian rugs in the inventory --- graph.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/graph.cpp b/graph.cpp index b4228e30..8328d153 100644 --- a/graph.cpp +++ b/graph.cpp @@ -161,6 +161,7 @@ int ctof(cell *c) { if(irr::on) return irr::ctof(c); if(nonbitrunc && !gp::on) return 1; // if(euclid) return 0; + if(!c) return 1; return ishept(c) ? 1 : 0; // c->type == 6 ? 0 : 1; }