[2.03.22988] [FATAL ERROR] Show portraits in cinematics

Enabling the Options → Gameplay → Show Portraits in Cinematics setting causes a fatal error and game crash if the interface is hidden and a portrait is shown via SetCinematicScene immediately afterward.

Steps to Reproduce:

  1. Enable Options → Gameplay → Show Portraits in Cinematics.
  2. Use the following minimal trigger code:

function Trig_CrashTest_Actions takes nothing returns nothing
call ShowInterface(false, 0.1)
call SetCinematicScene(‘h000’, PLAYER_COLOR_RED, “Test”, “Test”, 0.1, 0.1)
endfunction

//===========================================================================
function InitTrig_CrashTest takes nothing returns nothing
set gg_trg_CrashTest = CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_CrashTest, Player(0), “”, false)
call TriggerAddAction(gg_trg_CrashTest, function Trig_CrashTest_Actions)
endfunction

Test map:

https:// drive.google .com/file/d/1jhZQdRGLMxzeI7m-N07NqtnQBMo_2Jy0/view?usp=sharing

9 Likes