Since you are a moderator please change this part in reply #3 in the topic about static const map:
Quote:
#include ObjectMap.h
void main()
{
ObjectMap* c = new ObjectMap;
c->GetName(2);
}
It should be:
Quote:
#include ObjectMap.h
void main()
{
ObjectMap* c = ObjectMap::GetI nstance();
c->GetName(2);
}
I wanted to edit the original post but I couldn't.
Quote:
#include ObjectMap.h
void main()
{
ObjectMap* c = new ObjectMap;
c->GetName(2);
}
It should be:
Quote:
#include ObjectMap.h
void main()
{
ObjectMap* c = ObjectMap::GetI nstance();
c->GetName(2);
}
I wanted to edit the original post but I couldn't.