moves the position pointer to the next inventory item
| 1146 | |
| 1147 | // moves the position pointer to the next inventory item |
| 1148 | void Inventory::NextPos(bool skip) { |
| 1149 | if ((pos) && (pos->next)) { |
| 1150 | pos = pos->next; |
| 1151 | } else if (!pos) { |
| 1152 | pos = root; |
| 1153 | } else |
| 1154 | return; |
| 1155 | |
| 1156 | if (!skip) |
| 1157 | ValidatePos(); |
| 1158 | } |
| 1159 | |
| 1160 | // moves the position pointer to the previous inventory item |
| 1161 | void Inventory::PrevPos(bool skip) { |
no outgoing calls
no test coverage detected