summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog.txt4
-rw-r--r--src/map/battle.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/Changelog.txt b/Changelog.txt
index 661058a21..133b50eff 100644
--- a/Changelog.txt
+++ b/Changelog.txt
@@ -1,5 +1,7 @@
Date Added
-11/20 * Skill updates [celest]
+11/20
+ * Added check for max vending_max_value when reading config [kobra_k88]
+ * Skill updates [celest]
- Napalm vulcan, Enchant Deadly Poison, Slow Poison (based on jAthena 1066)
- Create Deadly Poison, thanks to DracoRPG!
- Added effect for Meteor Assault
diff --git a/src/map/battle.c b/src/map/battle.c
index a23f8b510..f334f3455 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -5481,6 +5481,10 @@ void battle_validate_conf() {
if (battle_config.night_darkness_level > 10) // Celest
battle_config.night_darkness_level = 10;
+
+ if (battle_config.vending_max_value > 10000000 || battle_config.vending_max_value<=0) // Lupus & Kobra_k88
+ battle_config.vending_max_value = 10000000;
+
}
/*==========================================