Do not crash if data is sent to TA before calling ListInit, just ignore

it.

Fixes Conflict Zone - Modern War Strategy.
This commit is contained in:
Flyinghead 2018-07-03 15:24:48 +02:00
parent e7d1688ae5
commit cbaaaaf970
1 changed files with 6 additions and 0 deletions

View File

@ -298,6 +298,12 @@ void ta_vtx_SoftReset()
INLINE
void DYNACALL ta_thd_data32_i(void* data)
{
if (ta_ctx == NULL)
{
printf("Warning: data sent to TA prior to ListInit. Ignored\n");
return;
}
simd256_t* dst = (simd256_t*)ta_tad.thd_data;
simd256_t* src = (simd256_t*)data;