| 406 | } |
| 407 | |
| 408 | void CGameWorld::ReplaceObject(CGameObject *obj, uint32_t newSerial) |
| 409 | { |
| 410 | m_Map[obj->Serial] = nullptr; |
| 411 | m_Map.erase(obj->Serial); |
| 412 | |
| 413 | QFOR(item, obj->m_Items, CGameObject *) |
| 414 | item->Container = newSerial; |
| 415 | |
| 416 | m_Map[newSerial] = obj; |
| 417 | obj->Serial = newSerial; |
| 418 | } |
| 419 | |
| 420 | void CGameWorld::RemoveObject(CGameObject *obj) |
| 421 | { |
no test coverage detected