File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
engine/modules/entities/src/main/resources/view/entity-module Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -105,8 +105,10 @@ export const PROPERTIES = {
105105 let res = ''
106106 let prevIdx = 0
107107 while ( match ) {
108- res += value . substring ( prevIdx , match . index )
109- res += globalData . players [ + match [ 1 ] ] . name
108+ if ( match [ 1 ] < globalData . players . length ) {
109+ res += value . substring ( prevIdx , match . index )
110+ res += globalData . players [ + match [ 1 ] ] . name
111+ }
110112 prevIdx = match . index + match [ 0 ] . length
111113 match = regexp . exec ( value )
112114 }
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ The CodinGame SDK is regularly updated and improved. This document lets you know
77### 🐞 Bug fix
88
99- Fixed CSS issues in statement editor preview
10+ - Texts no longer parse nickname tokens for player ids that are out of range
1011
1112## 3.13.0
1213
You can’t perform that action at this time.
0 commit comments