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
It seems std::list might auto convert things to a const char* value?
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: