mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-10 19:13:29 +00:00
Added an assert in debug mode to check duplicate FileItems in file_system module.
This commit is contained in:
parent
7d47093acc
commit
a59cce0932
@ -975,6 +975,11 @@ static void put_fileitem(FileItem* fileitem)
|
||||
|
||||
ASSERT(fileitem->keyname != NOTINITIALIZED);
|
||||
|
||||
#ifdef DEBUGMODE
|
||||
FileItemMap::iterator it = fileitems_map->find(get_key_for_pidl(fileitem->fullpidl));
|
||||
ASSERT(it == fileitems_map->end());
|
||||
#endif
|
||||
|
||||
// insert this file-item in the hash-table
|
||||
fileitems_map->insert(std::make_pair(fileitem->keyname, fileitem));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user