Commit ecf2a8b9 authored by David Reid's avatar David Reid

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

parent d282fba0
v0.11.19 - TBD v0.11.19 - TBD
===================== =====================
* Fix a bug where `ma_decoder_init_file()` can incorrectly return successfully. * Fix a bug where `ma_decoder_init_file()` can incorrectly return successfully.
* Fix a crash when using a node with more than 2 outputs.
* Remove the use of some deprecated functions. * Remove the use of some deprecated functions.
......
...@@ -72041,7 +72041,7 @@ MA_API ma_result ma_node_init_preallocated(ma_node_graph* pNodeGraph, const ma_n ...@@ -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) { 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 { } else {
pNodeBase->pOutputBuses = pNodeBase->_outputBuses; pNodeBase->pOutputBuses = pNodeBase->_outputBuses;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment