Fix a crash when encountering 0 byte .vqa placeholders.

This commit is contained in:
Matthias Mailänder
2022-04-24 13:11:40 +02:00
committed by abcdefg30
parent 9e34299085
commit 91fbd618ce
5 changed files with 33 additions and 10 deletions

View File

@@ -170,7 +170,7 @@ namespace OpenRA.Mods.Common.Scripting
}
catch (FileNotFoundException e)
{
Log.Write("lua", "Couldn't play movie {0}! File doesn't exist.", e.FileName);
Log.Write("lua", $"Couldn't play movie {e.FileName}! File doesn't exist.");
onCompleteRadar();
return false;
}