Server Help

ASSS Questions - invalid use of incomplete typedef `Region'

gilder - Mon Mar 26, 2007 9:08 am
Post subject: invalid use of incomplete typedef `Region'
Code: Show/Hide

typedef struct MyArenaData
{
   Region (*region)[10];
   int regions;
} MyArenaData;

...

md->Contains(arenadata->region[i], p->position.x, p->position.y);


Every time i use arenadata->region[a], Dev-C++ informs that "invalid use of incomplete typedef `Region' ". Have i declared region variable wrong?
numpf - Mon Mar 26, 2007 10:39 am
Post subject:
Remove the parens around (*region)

-numpf
gilder - Mon Mar 26, 2007 10:43 am
Post subject:
Ok, it works. Thanks for your help. Was afraid that *region[10] means *(region[10]).
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group