mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[11589] Fix compile for "old" compilers.
Need to avoid using "override" as parameter or variable name now...
This commit is contained in:
parent
f45e9ad680
commit
6b8f9fe03d
2 changed files with 3 additions and 3 deletions
|
|
@ -43,12 +43,12 @@ class MANGOS_DLL_DECL ObjectRegistry
|
|||
}
|
||||
|
||||
/// Inserts a registry item
|
||||
bool InsertItem(T *obj, Key key, bool override = false)
|
||||
bool InsertItem(T *obj, Key key, bool replace = false)
|
||||
{
|
||||
typename RegistryMapType::iterator iter = i_registeredObjects.find(key);
|
||||
if( iter != i_registeredObjects.end() )
|
||||
{
|
||||
if( !override )
|
||||
if( !replace )
|
||||
return false;
|
||||
delete iter->second;
|
||||
i_registeredObjects.erase(iter);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11588"
|
||||
#define REVISION_NR "11589"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue