* Unloads the selected weapon. * @param action Pointer to an action. */
| 451 | * @param action Pointer to an action. |
| 452 | */ |
| 453 | void InventoryState::btnUnloadClick(Action *) |
| 454 | { |
| 455 | if (_inv->unload()) |
| 456 | { |
| 457 | _txtItem->setText(L""); |
| 458 | _txtAmmo->setText(L""); |
| 459 | _selAmmo->clear(); |
| 460 | updateStats(); |
| 461 | } |
| 462 | } |
| 463 | |
| 464 | /** |
| 465 | * Shows more ground items / rearranges them. |