| 358 | } |
| 359 | |
| 360 | void CGameObject::Clear() |
| 361 | { |
| 362 | if (!Empty()) |
| 363 | { |
| 364 | CGameObject *obj = (CGameObject *)m_Items; |
| 365 | while (obj != nullptr) |
| 366 | { |
| 367 | CGameObject *next = (CGameObject *)obj->m_Next; |
| 368 | g_World->RemoveObject(obj); |
| 369 | obj = next; |
| 370 | } |
| 371 | m_Items = nullptr; |
| 372 | } |
| 373 | } |
| 374 | |
| 375 | void CGameObject::ClearUnequipped() |
| 376 | { |
no test coverage detected