* @brief zero one of the preallocated nodes and return a pointer to it, or NULL if none are available */
| 357 | * @brief zero one of the preallocated nodes and return a pointer to it, or NULL if none are available |
| 358 | */ |
| 359 | PATHNODE *path_new_step() |
| 360 | { |
| 361 | PATHNODE *new_node; |
| 362 | |
| 363 | if (gdwCurNodes == MAXPATHNODES) |
| 364 | return NULL; |
| 365 | |
| 366 | new_node = &path_nodes[gdwCurNodes]; |
| 367 | gdwCurNodes++; |
| 368 | memset(new_node, 0, sizeof(PATHNODE)); |
| 369 | return new_node; |
| 370 | } |
| 371 | |
| 372 | DEVILUTION_END_NAMESPACE |
no outgoing calls
no test coverage detected