* Selects the next soldier. * @param action Pointer to an action. */
| 430 | * @param action Pointer to an action. |
| 431 | */ |
| 432 | void InventoryState::btnNextClick(Action *) |
| 433 | { |
| 434 | if (_inv->getSelectedItem() != 0) |
| 435 | { |
| 436 | return; |
| 437 | } |
| 438 | if (_parent) |
| 439 | { |
| 440 | _parent->selectNextPlayerUnit(false, false, true); |
| 441 | } |
| 442 | else |
| 443 | { |
| 444 | _battleGame->selectNextPlayerUnit(false, false, true); |
| 445 | } |
| 446 | init(); |
| 447 | } |
| 448 | |
| 449 | /** |
| 450 | * Unloads the selected weapon. |
nothing calls this directly
no test coverage detected