| 3435 | |
| 3436 | void SelectObject(int objnum); |
| 3437 | |
| 3438 | void CMainFrame::OnObjectSelectByNumber() { |
| 3439 | int n; |
| 3440 | |
| 3441 | if (InputNumber(&n, "Select Object", "Enter object number to select", this)) { |
| 3442 | |
| 3443 | if ((n > Highest_object_index) || (Objects[n].type == OBJ_NONE)) { |
| 3444 | OutrageMessageBox("Invalid object number."); |
| 3445 | return; |
| 3446 | } |
| 3447 | |
| 3448 | SelectObject(n); |
| 3449 | } |
| 3450 | } |
| 3451 | |
| 3452 | #include "manage.h" |
nothing calls this directly
no test coverage detected