mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-12-28 07:59:04 +00:00
rogueviz:: nilrider:: fixed a potential crash when rendering castles when there are actually no castles
This commit is contained in:
@@ -541,7 +541,7 @@ void level::draw_level(const shiftmatrix& V) {
|
||||
}
|
||||
}
|
||||
|
||||
if(true) {
|
||||
if(isize(castle_tinf.tvertices)) {
|
||||
auto& poly = queuepoly(V, shCastle, 0xC02020FF);
|
||||
poly.tinf = &castle_tinf;
|
||||
castle_tinf.texture_id = castle_texture->textureid;
|
||||
|
||||
Reference in New Issue
Block a user