1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 22:39:53 +00:00

fixed a crash when drawing Compass in items [would not normally happen but still]

This commit is contained in:
Zeno Rogue 2018-01-11 23:18:43 +01:00
parent 2afe841a50
commit eeaebf1266

View File

@ -610,7 +610,7 @@ bool drawItemType(eItem it, cell *c, const transmatrix& V, int icol, int ticks,
}
else if(it == itCompass) {
cell *c1 = findcompass(c);
cell *c1 = c ? findcompass(c) : NULL;
transmatrix V2;
if(c1) {
transmatrix P = shmup::ggmatrix(c1);