| 06-27-2007, 06:05 PM | #1 |
I'm not sure if this is the right forum for this question. I've gone through the tutorial, but I'm a little confused with how much I can allocate of the same struct or two different structs. For example: JASS:struct Size1Int integer a endstruct struct Size2Int integer a integer b endstruct Let's say I only define struct Size1Int in my map. I know for sure that I can allocate 8k instances of this struct before the struct manager returns 0 from .create(). But, what if I defined both structs in my map. Would I still be able to allocate 8k different instances of Size1Int before the struct manager returns 0 from .create()? Or is it a combination of both struct size divisible into 8k? Thanx |
| 06-27-2007, 06:09 PM | #2 |
2 different structs will never have anything to do with one another in allocation and the 2nd struct is no different than the first one, you can still make 8k of that as well the only time the limit changes is if you do this... JASS:struct real array stuff [50] endstruct now you can only declare 8k/50 = ~160 of this kind of struct. this limitation may go away sometime, though. |
| 06-27-2007, 06:20 PM | #3 |
Thanx! |
| 06-28-2007, 03:06 AM | #4 | |
Quote:
|
