소스 검색

- Bug fix to previous commit

beegee1 12 년 전
부모
커밋
56534bc3fb
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      lib/mapping/CMap.cpp

+ 1 - 0
lib/mapping/CMap.cpp

@@ -155,6 +155,7 @@ CMapHeader::~CMapHeader()
 
 CMap::CMap() : checksum(0), grailPos(-1, -1, -1), grailRadious(0), terrain(nullptr)
 {
+	allHeroes.resize(allowedHeroes.size());
 	allowedAbilities = VLC->heroh->getDefaultAllowedAbilities();
 	allowedArtifact = VLC->arth->getDefaultAllowed();
 	allowedSpell = VLC->spellh->getDefaultAllowed();