Game crash when hiring someone in Rites of Passage
Game crashes when clicking on the second portrait:

C:\GOG Games\Might and Magic 8\Scripts/Core/RSMem.lua:1472: array index (4) out of bounds [0, 3]
stack traceback:
[C]: in function 'error'
C:\GOG Games\Might and Magic 8\Scripts/Core/RSMem.lua:1429: in function '__index'
C:\GOG Games\Might and Magic 8\Scripts/Core/RSMem.lua:1472: in function '__index'
... Magic 8\Scripts\Structs\After\LocalizationAndQuests.lua:736: in function 'UpdatePlayer'
... Magic 8\Scripts\Structs\After\LocalizationAndQuests.lua:750: in function 'UpdateCurrentQuests'
... Magic 8\Scripts\Structs\After\LocalizationAndQuests.lua:810: in function 'v'
C:\GOG Games\Might and Magic 8\Scripts/Core/EventsList.lua:101: in function <C:\GOG Games\Might and Magic 8\Scripts/Core/EventsList.lua:96>
arguments of '__index':
t = (table: 0x177f31f8)
a = 4
v = nil
local variables of '__index':
aorig = 4
a1 = 4
n = 4
upvalues of '__index':
ptr = nil
u4 = (table: 0x02807c48)
GetPtr = (function: 0x028cd0f0)
obj = (table: 0x02aa9540)
o = 12044876
assertnum = (function: 0x028cef70)
error = (function: 0x027afbc8)
type = (function: builtin#3)
SetLen = (function: 0x02d37f68)
low = 0
GetLen = (function: 0x02d37ec0)
lenP = 12044896
lenA = (table: 0x02842ff0)
size = 4
count = 5
_index = nil
_newindex = nil
tonumber = (function: builtin#17)
beyondLen = nil
f = (function: 0x02d37b90)
format = (function: builtin#91)
sOutOfBounds = "array index (%s) out of bounds [%s, %s]"
tostring = (function: builtin#18)
tostring2 = (function: 0x028cf6b8)