1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-13 11:40:38 +02:00

Fix merge

This commit is contained in:
Ivan Savenko 2024-07-12 12:15:30 +00:00
parent c4b8778e8b
commit 388d65d6b2
3 changed files with 6 additions and 2 deletions

View File

@ -152,7 +152,7 @@ struct DLL_LINKAGE StartInfo : public Serializeable
h & playerInfos;
if (h.version < Handler::Version::REMOVE_LIB_RNG)
{
uint32_t oldSeeds;
uint32_t oldSeeds = 0;
h & oldSeeds;
h & oldSeeds;
h & oldSeeds;

View File

@ -10,6 +10,8 @@
#include "StdInc.h"
#include "RumorState.h"
VCMI_LIB_NAMESPACE_BEGIN
bool RumorState::update(int id, int extra)
{
if(vstd::contains(last, type))
@ -27,3 +29,5 @@ bool RumorState::update(int id, int extra)
return true;
}
VCMI_LIB_NAMESPACE_END

View File

@ -705,7 +705,7 @@ void CGWhirlpool::teleportDialogAnswered(const CGHeroInstance *hero, ui32 answer
const auto * obj = cb->getObj(exit);
std::set<int3> tiles = obj->getBlockedPos();
dPos = *RandomGeneratorUtil::nextItem(tiles, cb->gameState()->getRandomGenerator()));
dPos = *RandomGeneratorUtil::nextItem(tiles, cb->gameState()->getRandomGenerator());
}
cb->moveHero(hero->id, hero->convertFromVisitablePos(dPos), EMovementMode::MONOLITH);