File count technically can't exceed uint.MaxValue/2 elements...
parent
499dfb7c36
commit
5ffdbcbbb3
|
@ -291,11 +291,13 @@ namespace GarrysMod.AddonCreator.Addon
|
|||
sw.Write(Version);
|
||||
|
||||
// File list
|
||||
#if SUPPORT_BIG
|
||||
if (Files.Count > uint.MaxValue)
|
||||
{
|
||||
throw new IndexOutOfRangeException("Number of addon files must not exceed " + uint.MaxValue +
|
||||
" elements.");
|
||||
}
|
||||
#endif
|
||||
uint fileNum = 0;
|
||||
foreach (var file in resultingFiles)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue