aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarbenium <carbenium@outlook.com>2016-07-26 01:14:16 +0200
committerCarbenium <carbenium@outlook.com>2016-07-26 01:14:16 +0200
commit060256000b1a553a21581b9b65e12f7cb034e148 (patch)
tree3a48e928671770d04060a5d153644a6eb32dc658
parente31ad32b5617e4e581f1218b137c68eb0c93fe4d (diff)
Tools/Mapextractor: Fix a vector subscript out of range debug assertion
-rw-r--r--src/tools/map_extractor/System.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/map_extractor/System.cpp b/src/tools/map_extractor/System.cpp
index db5cd5da0f9..071d4ccb599 100644
--- a/src/tools/map_extractor/System.cpp
+++ b/src/tools/map_extractor/System.cpp
@@ -374,7 +374,7 @@ void ReadLiquidTypeTableDBC()
exit(1);
}
- LiqType.resize(db2.GetMaxId(), 0xFFFF);
+ LiqType.resize(db2.GetMaxId() + 1, 0xFFFF);
for (uint32 x = 0; x < db2.GetNumRows(); ++x)
{