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:
@ -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.
|
||||||
|
Reference in New Issue
Block a user