| 02-23-2008, 12:21 AM | #1 |
More than 1 struct member w/ an array? - is the much more readable title, I guess I screwed up typing the title ._. It's kinda hard to elaborate, but my real problem is what if there's more than 1 member with arrays inside a struct? JASS:private struct Missiles unit array Missile[MaxMissiles_PerNova] real array Angle[MaxMissiles_PerNova] real array Start[MaxMissiles_PerNova] real array End[MaxMissiles_PerNova] endstruct MaxMissiles_PerNova = 21 So if I instanciate Missiles, does each instance of it consume 20 "array" instances or 80 "array" instances (20 "array" instances per variable array)? |
| 02-23-2008, 12:25 AM | #2 |
Your code would allow a maximum of 8190/21 = 390 instances of the Missiles struct. |
| 02-23-2008, 12:29 AM | #3 |
Ah, very good answer. Thank you good sir. |
| 02-23-2008, 08:42 AM | #4 |
you can see it if you look the allocate function of your struct in the war3map.j |
