fixed bad network ID assignment.

ClientNetIDStart was added twice here.
This was asserting when loading a savegame.
This commit is contained in:
Christoph Oelckers 2024-04-27 11:57:22 +02:00
parent f7a15bc5f9
commit 45cf72ff48

View file

@ -662,7 +662,7 @@ void NetworkEntityManager::SetClientNetworkEntity(DObject* mo, const unsigned in
} }
s_netEntities[id] = mo; s_netEntities[id] = mo;
mo->SetNetworkID(ClientNetIDStart + id); mo->SetNetworkID(id);
} }
void NetworkEntityManager::AddNetworkEntity(DObject* const ent) void NetworkEntityManager::AddNetworkEntity(DObject* const ent)