aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2008-10-10 15:20:27 -0500
committerXTZGZoReX <none@none>2008-10-10 15:20:27 -0500
commit1e1ba89c4960a76a61ceeeb90d0194b46872ec52 (patch)
treeffab7320c7a117a95e9d4a93370f9a719d90aa3f /src
parent479fe8b767c833ae5055af31a800738ba8e597ad (diff)
[svn] * Fixing some typos in SQL files.
* Applying proper structure to SQL updates. * Fixing ImpConfig compile problems. * Moving INSTALL to INSTALL.linux to avoid autoconf collisions. --HG-- branch : trunk rename : INSTALL => INSTALL.linux rename : sql/updates/10_instantiated_battlegrounds.sql => sql/updates/10_world.sql rename : sql/updates/11_arena_points_characters.sql => sql/updates/11_characters.sql
Diffstat (limited to 'src')
-rw-r--r--src/game/ObjectMgr.cpp2
-rw-r--r--src/trinityrealm/AuthSocket.cpp7
2 files changed, 3 insertions, 6 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp
index b6f3f44834e..b753360838e 100644
--- a/src/game/ObjectMgr.cpp
+++ b/src/game/ObjectMgr.cpp
@@ -2078,8 +2078,6 @@ void ObjectMgr::LoadPlayerInfo()
// Load playercreate spells
{
- // 0 1 2 3
- QueryResult *result = WorldDatabase.Query("SELECT race, class, Spell, Active FROM playercreateinfo_spell");
QueryResult *result = NULL;
if(sWorld.getConfig(CONFIG_START_ALL_SPELLS))
diff --git a/src/trinityrealm/AuthSocket.cpp b/src/trinityrealm/AuthSocket.cpp
index 0fd2726470d..55e65a79052 100644
--- a/src/trinityrealm/AuthSocket.cpp
+++ b/src/trinityrealm/AuthSocket.cpp
@@ -372,12 +372,11 @@ bool AuthSocket::_HandleLogonChallenge()
int MinBuild = sConfig.GetIntDefault("MinBuild", 8606);
int MaxBuild = sConfig.GetIntDefault("MaxBuild", 8606);
- if(ch->build >= MinBuild && ch->build <= MaxBuild)
+ if(ch->build >= MinBuild && ch->build <= MaxBuild) {
valid_version=true;
- break;
- }
- else
+ } else {
valid_version=false;
+ };
/// <ul><li> if this is a valid version
if(valid_version)