Skip to content

Fix array able to be initialized with zero size#445

Merged
dvander merged 1 commit intoalliedmodders:masterfrom
FortyTwoFortyTwo:zeroarray
Jan 9, 2020
Merged

Fix array able to be initialized with zero size#445
dvander merged 1 commit intoalliedmodders:masterfrom
FortyTwoFortyTwo:zeroarray

Conversation

@FortyTwoFortyTwo
Copy link
Contributor

Array could not initialized with negative size or values exceeds size, but no errors thrown if size is zero. Even when error 9 states array size zero could not be made.

Also apparently tf2_stocks.inc have array based enum struct used for deprecated function. Since TFResourceNames array size is zero, build fails. Will make PR about that in sourcemod repo.

@dvander
Copy link
Member

dvander commented Jan 9, 2020

Thanks!

@FortyTwoFortyTwo FortyTwoFortyTwo deleted the zeroarray branch January 9, 2020 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants