summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-20 14:07:00 +0000
committerLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-20 14:07:00 +0000
commit531ae6ff24ed1164ba08dc61c47ad642597591dc (patch)
treed600357e4c0938612654584ca9e5fc560d82eb77 /src/map
parent9d02f1a1b111f882ca824583b1380a96fdeb556d (diff)
downloadhercules-531ae6ff24ed1164ba08dc61c47ad642597591dc.tar.gz
hercules-531ae6ff24ed1164ba08dc61c47ad642597591dc.tar.bz2
hercules-531ae6ff24ed1164ba08dc61c47ad642597591dc.tar.xz
hercules-531ae6ff24ed1164ba08dc61c47ad642597591dc.zip
* 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
Diffstat (limited to 'src/map')
-rw-r--r--src/map/battle.c4
1 files changed, 4 insertions, 0 deletions
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;
+
}
/*==========================================