| 624 | } |
| 625 | |
| 626 | void CWorldObjectsPlayerDialog::OnSelendokPshipPulldown() { |
| 627 | int i, cur; |
| 628 | char name[200]; |
| 629 | |
| 630 | cur = SendDlgItemMessage(IDC_PSHIP_PULLDOWN, CB_GETCURSEL, 0, 0); |
| 631 | SendDlgItemMessage(IDC_PSHIP_PULLDOWN, CB_GETLBTEXT, cur, (LPARAM)(LPCTSTR)name); |
| 632 | |
| 633 | i = FindShipName(name); |
| 634 | |
| 635 | if (i == -1) { |
| 636 | mprintf(0, "Possible corrupted ship list, but probably nothing."); |
| 637 | UpdateDialog(); |
| 638 | } |
| 639 | |
| 640 | D3EditState.current_ship = i; |
| 641 | UpdateDialog(); |
| 642 | } |
| 643 | |
| 644 | // When closing, save all our checked out ships locally so we know |
| 645 | // what stuff to flag as "checked out" the next time we start up |
nothing calls this directly
no test coverage detected