Struct member question
Why dosn´t this work:
struct LEVEL_INFO
{
POINT PlayerStartPos;
};
LEVEL_INFO LevelInfo =
{
g_Main.m_PlayerStartPos
};
Why is this necessary?
LEVEL_INFO LevelInfo =
{
{ g_Main.m_PlayerStartPos.x, g_Main.m_PlayerStartPos.x }
};
tHANX,
Zeblar Nagrim, Lord of Chaos
i''m not sure (not a hard-core C kinda guy), but i think when using struct''s, you need to add the ''struct'' keyword befor the variable like so:
hope that helps.
#define Jesus 1
|
hope that helps.
#define Jesus 1
[source]#define Jesus 1[/source]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement