From 6f7e5b4d6aa487441ff9d639bae5ad47cd38a4f6 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 27 Mar 2024 21:31:58 +0100 Subject: [PATCH] load_mode_data error checking --- yendor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yendor.cpp b/yendor.cpp index 03a12f66..ba1bb117 100644 --- a/yendor.cpp +++ b/yendor.cpp @@ -1053,7 +1053,7 @@ EX void load_mode_data_with_zero(hstream& f) { case 3: { use_custom_land_list = true; int lt = f.get(); - if(lt > landtypes) throw hstream_exception(); + if(lt > landtypes) throw hstream_exception("too many landtypes"); for(int i=0; i(); custom_land_treasure[i] = f.get(); @@ -1079,7 +1079,7 @@ EX void load_mode_data_with_zero(hstream& f) { vid.creature_scale = f.get(); default: - throw hstream_exception(); + throw hstream_exception("wrong option"); } } }