diff --git a/source/tools/entity/checkrefs.pl b/source/tools/entity/checkrefs.pl
index aba2a50..026020f 100755
a
|
b
|
sub add_civs
|
372 | 372 | push @roots, $f; |
373 | 373 | |
374 | 374 | open my $fh, vfs_to_physical($f) or die "Failed to open '$f': $!"; |
375 | | my $civ = decode_json(do { local $/; <$fh> }); |
| 375 | my $civ = decode_json(do { local $/; my $file = <$fh>; $file =~ s/^\xEF\xBB\xBF//; $file }); |
376 | 376 | |
377 | 377 | push @deps, [ $f, "art/textures/ui/" . $civ->{Emblem} ]; |
378 | 378 | |
… |
… |
sub add_rms
|
394 | 394 | push @roots, $f; |
395 | 395 | |
396 | 396 | open my $fh, vfs_to_physical($f) or die "Failed to open '$f': $!"; |
397 | | my $rms = decode_json(do { local $/; <$fh> }); |
| 397 | my $rms = decode_json(do { local $/; my $file = <$fh>; $file =~ s/^\xEF\xBB\xBF//; $file }); |
398 | 398 | |
399 | 399 | push @deps, [ $f, "maps/random/" . $rms->{settings}{Script} ]; |
400 | 400 | |