• 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!

C++ std::list create a list of npcs/monsters ids

Itutorial

Legendary OT User
Joined
Dec 23, 2014
Messages
2,339
Solutions
68
Reaction score
1,024
I am trying to create a list of monster/npc ids and insert it into a std::list.

When I try to remove an element from the list I get "uint32_t is incompatable with type const char*"

Only storing the ID's of npcs/monsters

C++:
std::list<uint32_t> specialNpcs;
std::list<uint32_t> specialMonsters;

C++:
void removeSpecialNpc(uint32_t id) {
       specialNpcs:remove(id);
 }

It seems std::list might auto convert things to a const char* value?
 
Last edited:
Figured it out.. dont want to talk about it....

C++:
void removeSpecialMonster(uint32_t id) {
       specialMonsters.remove(id);
}
 
Last edited:
Solution
Back
Top