View Single Post
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 05-22-2020 , 13:22   Re: Global Array + Enum Struct
Reply With Quote #4

Quote:
It won't compile "cannot call methods on an array", but also gives a tag mismatch warning.
gWeaponClass[][] should be gWeaponClass[] if you want it to be a 1D array of your struct. Your most recent sample compiles with no warnings or errors with that change on 1.11.

The warnings and errors are both different ways of the compiler telling you that, since it can't know whether you really meant 1D or 2D.

Last edited by Fyren; 05-22-2020 at 13:25. Reason: rephrase entire post
Fyren is offline