Skip to content

Commit b7fa424

Browse files
committed
Fix players being skipped in processStringTable (#52)
Due to an error when porting StatsHelix's demoinfocs, players were skipped if there was a 'gap' between the string-table entries. So if the string-table's userdata at index 3 was empty, for example, players at index 4 and above would be ignored.
1 parent e3b2a10 commit b7fa424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stringtables.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func (p *Parser) processStringTable(tab *msg.CSVCMsg_CreateStringTable) {
194194
}
195195

196196
if len(userdata) == 0 {
197-
break
197+
continue
198198
}
199199

200200
switch tab.Name {

0 commit comments

Comments
 (0)