5539 |
* @param index - instrument script slot index |
* @param index - instrument script slot index |
5540 |
* @returns script or NULL if index is out of bounds |
* @returns script or NULL if index is out of bounds |
5541 |
*/ |
*/ |
5542 |
Script* Instrument::GetScriptOfSlot(uint index) { |
Script* Instrument::GetScriptOfSlot(size_t index) { |
5543 |
LoadScripts(); |
LoadScripts(); |
5544 |
if (index >= pScriptRefs->size()) return NULL; |
if (index >= pScriptRefs->size()) return NULL; |
5545 |
return pScriptRefs->at(index).script; |
return pScriptRefs->at(index).script; |