• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[TFS 0.3.6] C++ problem

KylerXX

Active Member
Joined
Jun 24, 2010
Messages
439
Reaction score
30
How to convert this code to 0.3.6 to work?
Code:
	std::vector<CreatureEvent*> getAllCreatureEvents(){return m_creatureEvents;}

I get this error:
dev said:
C:\\creatureevent.h In member function `std::vector<CreatureEvent*, std::allocator<CreatureEvent*> > CreatureEvents::getAllCreatureEvents()':
79 C:\\creatureevent.h conversion from `std::map<std::string, CreatureEvent*, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::string, CreatureEvent*> > >' to non-scalar type `std::vector<CreatureEvent*, std::allocator<CreatureEvent*> >' requested
 
Last edited:
Back
Top