1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

- fix for creature banks (was broken several revisions ago)

This commit is contained in:
Ivan Savenko
2012-01-23 00:02:10 +00:00
parent f31a729ddc
commit b72a19cdb1

View File

@ -91,10 +91,10 @@ bool CPlayersVisited::hasVisited( ui8 player ) const
static void readCreatures(const JsonNode &creature, std::vector< std::pair <ui16, ui32> > &storage) static void readCreatures(const JsonNode &creature, std::vector< std::pair <ui16, ui32> > &storage)
{ {
std::pair<si16, si32> creInfo = std::make_pair(-1, 0); std::pair<si16, si32> creInfo = std::make_pair(-1, 0);
std::string creName = creature["name"].String();
creInfo.second = creature["number"].Float(); creInfo.second = creature["number"].Float();
creInfo.first = creature["id"].Float(); creInfo.first = creature["id"].Float();
storage.push_back(creInfo);
} }
// Bank helper. Process a bank level. // Bank helper. Process a bank level.