mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-15 02:05:50 +00:00
Fix backwards check on contains()
This commit is contained in:
@@ -89,7 +89,7 @@ public:
|
||||
void AddLibHook(const rdcstr &name)
|
||||
{
|
||||
SCOPED_LOCK(lock);
|
||||
if(libhooks.contains(name))
|
||||
if(!libhooks.contains(name))
|
||||
libhooks.push_back(name);
|
||||
}
|
||||
|
||||
|
||||
@@ -258,7 +258,7 @@ void LibraryHooks::RegisterLibraryHook(char const *name, FunctionLoadCallback cb
|
||||
{
|
||||
SCOPED_LOCK(libLock);
|
||||
|
||||
if(libraryHooks.contains(name))
|
||||
if(!libraryHooks.contains(name))
|
||||
libraryHooks.push_back(name);
|
||||
|
||||
if(cb)
|
||||
|
||||
Reference in New Issue
Block a user