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

Stabilization

This commit is contained in:
Ivan Savenko 2024-01-16 17:45:43 +02:00
parent 9af7c63a26
commit 496c13b34a
3 changed files with 4 additions and 2 deletions

View File

@ -710,6 +710,8 @@ void CServerHandler::endGameplay(bool closeConnection, bool restart)
if(c)
{
nextClient = std::make_unique<CClient>();
c->iser.cb = nextClient.get();
c->enterLobbyConnectionMode();
c->disableStackSendingByID();
}

View File

@ -73,7 +73,7 @@ protected:
ArtifactInstanceID id;
public:
const CArtifact * artType;
const CArtifact * artType = nullptr;
CArtifactInstance(const CArtifact * art);
CArtifactInstance();

View File

@ -772,7 +772,7 @@ void CGArtifact::initObj(CRandomGenerator & rand)
subID = 1;
assert(storedArtifact->artType);
assert(storedArtifact->getParentNodes().size());
assert(!storedArtifact->getParentNodes().empty());
//assert(storedArtifact->artType->id == subID); //this does not stop desync
}