ref: e31c7680fc51eda71be60d926d20cfb4b59946c5
parent: e753d2f648f4cc6b03b4a53c279294e4643d2f82
author: levesqu8 <levesqu8@msu.edu>
date: Tue Nov 21 12:13:56 EST 2017
fix for random crashes related to voice data being NULL
--- a/rott/audiolib/multivoc.c
+++ b/rott/audiolib/multivoc.c
@@ -537,6 +537,16 @@
// SetBorderColor(backcolor++);
// break;
// }
+
+ if(NULL == voice->GetSound)
+ {
+ #ifdef _DEBUG
+ printf("MV_ServiceVoc() voice->GetSound == NULL, break;\n");
+ #endif
+
+ // This sound is null, early out, or face a nasty crash.
+ break;
+ }
MV_BufferEmpty[ MV_MixPage ] = FALSE;