| 305 | // LIST FUNCTIONS |
| 306 | |
| 307 | inline int AddScriptToList(char *name, uint16_t type, bool custom) { |
| 308 | int slot = FindFreeScriptSlot(); |
| 309 | strcpy(Script_names[slot].name, name); |
| 310 | Script_names[slot].used = true; |
| 311 | Script_names[slot].type = type; |
| 312 | Script_names[slot].iscustom = custom; |
| 313 | Script_names[slot].free_parameters(); |
| 314 | return slot; |
| 315 | } |
| 316 | |
| 317 | // Resets all entries in script list to null. |
| 318 | void ResetScriptList() { |
no test coverage detected