mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Stabilization
This commit is contained in:
@@ -710,6 +710,8 @@ void CServerHandler::endGameplay(bool closeConnection, bool restart)
|
|||||||
|
|
||||||
if(c)
|
if(c)
|
||||||
{
|
{
|
||||||
|
nextClient = std::make_unique<CClient>();
|
||||||
|
c->iser.cb = nextClient.get();
|
||||||
c->enterLobbyConnectionMode();
|
c->enterLobbyConnectionMode();
|
||||||
c->disableStackSendingByID();
|
c->disableStackSendingByID();
|
||||||
}
|
}
|
||||||
|
@@ -73,7 +73,7 @@ protected:
|
|||||||
|
|
||||||
ArtifactInstanceID id;
|
ArtifactInstanceID id;
|
||||||
public:
|
public:
|
||||||
const CArtifact * artType;
|
const CArtifact * artType = nullptr;
|
||||||
|
|
||||||
CArtifactInstance(const CArtifact * art);
|
CArtifactInstance(const CArtifact * art);
|
||||||
CArtifactInstance();
|
CArtifactInstance();
|
||||||
|
@@ -772,7 +772,7 @@ void CGArtifact::initObj(CRandomGenerator & rand)
|
|||||||
subID = 1;
|
subID = 1;
|
||||||
|
|
||||||
assert(storedArtifact->artType);
|
assert(storedArtifact->artType);
|
||||||
assert(storedArtifact->getParentNodes().size());
|
assert(!storedArtifact->getParentNodes().empty());
|
||||||
|
|
||||||
//assert(storedArtifact->artType->id == subID); //this does not stop desync
|
//assert(storedArtifact->artType->id == subID); //this does not stop desync
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user