mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-19 08:01:50 +00:00
fixed bad network ID assignment.
ClientNetIDStart was added twice here. This was asserting when loading a savegame.
This commit is contained in:
parent
f7a15bc5f9
commit
45cf72ff48
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue