1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

crash fixed again

This commit is contained in:
Zeno Rogue 2018-08-28 13:47:51 +02:00
parent 25c09154dc
commit f009e80689
2 changed files with 2 additions and 5 deletions

View File

@ -864,7 +864,6 @@ transmatrix calc_relative_matrix(cell *c, cell *c1, const hyperpoint& point_hint
transmatrix calc_relative_matrix(cell *c, cell *c1, int direction_hint);
static const int NOHINT = -1;
// graph
void showMissionScreen();

View File

@ -1706,7 +1706,7 @@ namespace mapeditor {
return false;
#else
if(c == drawcell && editingShape(group, id) && prio == PPR_DEFAULT)
if(c && c == drawcell && editingShape(group, id) && prio == PPR_DEFAULT)
drawtrans = V;
usershape *us = usershapes[group][id];
@ -1724,7 +1724,7 @@ namespace mapeditor {
if(cmode & sm::DRAW) {
#if CAP_TEXTURE
if(texture::config.tstate == texture::tsActive && lmouseover && !mouseout() && (lstartcell || !holdmouse)) {
if(texture::config.tstate == texture::tsActive && lmouseover && !mouseout() && (lstartcell || !holdmouse) && c) {
cell *ls = lstartcell ? lstartcell : lmouseover;
auto sio = patterns::getpatterninfo0(ls);
auto sih = patterns::getpatterninfo0(c);
@ -1768,8 +1768,6 @@ namespace mapeditor {
0xFFFF00);
} */
if(c == ew.c) mapeditor::drawtrans = V;
if(!us) return false;
usershapelayer &ds(us->d[mapeditor::dslayer]);