1
0
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:
Zeno Rogue
2025-09-07 12:36:54 +02:00
parent d0b1974ff2
commit 8616ffac39

View File

@@ -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;