1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

fixed a possible crash in hybrid

This commit is contained in:
Zeno Rogue 2019-11-02 20:28:52 +01:00
parent 96224b5c44
commit e8de4d088c

View File

@ -1081,7 +1081,7 @@ EX namespace hybrid {
cell *c1 = hybrid::get_where(c).first; cell *c1 = hybrid::get_where(c).first;
wo = isize(cgi.shWall3D); wo = isize(cgi.shWall3D);
int won = wo + c->type; int won = wo + c->type;
cgi.wallstart.pop_back(); if(!cgi.wallstart.empty()) cgi.wallstart.pop_back();
cgi.reserve_wall3d(won); cgi.reserve_wall3d(won);
if(prod) for(int i=0; i<c1->type; i++) { if(prod) for(int i=0; i<c1->type; i++) {