X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;f=windows.c;h=26267aa69fae6f8a89c9e512d7d6364ee8ca2df4;hb=f2ab9677cc821999a91150126bcaa50ae8c7d927;hp=f879e6b07dbc67db5eed8db411da4ecd4258708c;hpb=0b9b769be3968b0d0689f6f88342658b8af848c0;p=plomrogue
diff --git a/windows.c b/windows.c
index f879e6b..26267aa 100644
--- a/windows.c
+++ b/windows.c
@@ -120,7 +120,8 @@ void draw_windows (struct WinMeta * win_meta, struct Win * win) {
void draw_all_windows (struct WinMeta * win_meta) {
// Draw all windows from the chain start on.
- draw_windows (win_meta, win_meta->chain_start); }
+ if (win_meta->chain_start)
+ draw_windows (win_meta, win_meta->chain_start); }
void draw_window(struct WinMeta * win_meta, struct Win * win) {
// Draw win's content, including border and title (the latter dependent on space available for it).