home · contact · privacy
Improved checking for only one of savefile / record file existing.
[plomrogue] / src / keybindings.c
index f33b559407fe419e8ab18e1bb292731cddf27416..6fabea65ed499074ef9deb3e65077e8572f0ab64 100644 (file)
@@ -10,6 +10,7 @@
 #include "windows.h" /* for draw_all_wins() and WinMeta struct */
 #include "misc.h"    /* for texfile_sizes() */
 #include "main.h"    /* for World struct */
+#include "rexit.h"   /* for err_exit() */
 
 
 
@@ -169,7 +170,8 @@ extern char * get_keyname(uint16_t keycode)
 extern void keyswin_mod_key(struct World * world, struct WinMeta * win_meta)
 {
     world->keyswindata->edit = 1;
-    draw_all_wins(win_meta);
+    exit_err(draw_all_wins(win_meta), world, "Trouble with draw_all_wins() in "
+                                             "keyswin_mod_key().");
     int key = getch();
     if (key < 1000)
     {