Rename variables to fix C++11 keyword collision

(cherry picked from commit 573cda7b524ee4d7d23cefd026b056181f451a8b)
This commit is contained in:
Carbenium committed 2015-04-05 00:36:33 +02:00
1 parent fb3c4911c7
commit 67238e2166
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -21997,9 +21997,9 @@ void Player::SetPvP(bool state)
(*itr)->SetPvP(state);
}
void Player::UpdatePvP(bool state, bool override)
void Player::UpdatePvP(bool state, bool _override)
{
if (!state || override)
if (!state || _override)
{
SetPvP(state);
pvpInfo.EndTimer = 0;
+2 -2
View File
@@ -47,12 +47,12 @@ class ObjectRegistry
}
/// Inserts a registry item
bool InsertItem(T *obj, Key key, bool override = false)
bool InsertItem(T *obj, Key key, bool _override = false)
{
typename RegistryMapType::iterator iter = i_registeredObjects.find(key);
if ( iter != i_registeredObjects.end() )
{
if ( !override )
if ( !_override )
return false;
delete iter->second;
i_registeredObjects.erase(iter);