From 0701b6db3f82d07338f2d3a4ae08e25749fed58a Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 20 Apr 2026 14:57:19 +0200 Subject: [PATCH] rogueviz:: presentation:: sub_picture ignores missing files --- rogueviz/presentation.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rogueviz/presentation.cpp b/rogueviz/presentation.cpp index 34a107bf..ae669ec8 100644 --- a/rogueviz/presentation.cpp +++ b/rogueviz/presentation.cpp @@ -177,6 +177,7 @@ texture::texture_data& get_texture(string s, flagtype flags = 0) { void sub_picture(string s, flagtype flags, ld dx, ld dy, ld scale) { auto& tex = get_texture(s); + if(tex.textureid == 0) return; flat_model_enabler fme; draw_texture(tex, dx, dy, scale); }