Reimplemented the push/pop entity methods in RoomManager
Some accessors in Entity had to be made const, as they were being called from lambdas with const parameters.
This commit is contained in:
@@ -149,6 +149,9 @@ void ServerApplication::FullCharacterUnload(int index) {
|
||||
return false;
|
||||
}
|
||||
|
||||
//pop from the rooms
|
||||
roomMgr.PopEntity(&character.second);
|
||||
|
||||
//pump character unload
|
||||
CharacterPacket newPacket;
|
||||
newPacket.type = SerialPacketType::CHARACTER_DELETE;
|
||||
|
||||
Reference in New Issue
Block a user