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:
parent
2afe841a50
commit
eeaebf1266
@ -610,7 +610,7 @@ bool drawItemType(eItem it, cell *c, const transmatrix& V, int icol, int ticks,
|
|||||||
}
|
}
|
||||||
|
|
||||||
else if(it == itCompass) {
|
else if(it == itCompass) {
|
||||||
cell *c1 = findcompass(c);
|
cell *c1 = c ? findcompass(c) : NULL;
|
||||||
transmatrix V2;
|
transmatrix V2;
|
||||||
if(c1) {
|
if(c1) {
|
||||||
transmatrix P = shmup::ggmatrix(c1);
|
transmatrix P = shmup::ggmatrix(c1);
|
||||||
|
Loading…
Reference in New Issue
Block a user