Fix a crash when using a node with more than 2 outputs.

This commit is contained in:
David Reid
2023-10-21 07:18:58 +10:00
parent d282fba0fe
commit ecf2a8b917
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -72041,7 +72041,7 @@ MA_API ma_result ma_node_init_preallocated(ma_node_graph* pNodeGraph, const ma_n
}
if (heapLayout.outputBusOffset != MA_SIZE_MAX) {
pNodeBase->pOutputBuses = (ma_node_output_bus*)ma_offset_ptr(pHeap, heapLayout.inputBusOffset);
pNodeBase->pOutputBuses = (ma_node_output_bus*)ma_offset_ptr(pHeap, heapLayout.outputBusOffset);
} else {
pNodeBase->pOutputBuses = pNodeBase->_outputBuses;
}