From 531ae6ff24ed1164ba08dc61c47ad642597591dc Mon Sep 17 00:00:00 2001 From: Lupus Date: Sat, 20 Nov 2004 14:07:00 +0000 Subject: * Added check for max vending_max_value when reading config git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@268 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map') 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; + } /*========================================== -- cgit v1.2.3-70-g09d2