Scripts/Commands: Corrected queried database for ip2nation in .pinfo command
This commit is contained in:
1 parent
bd69c9ad49
commit
4537d4082e
1 file changed
+1
-5
@@ -1588,12 +1588,8 @@ public:
|
||||
#endif
|
||||
|
||||
PreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_SEL_IP2NATION_COUNTRY);
|
||||
|
||||
stmt->setUInt32(0, ip);
|
||||
|
||||
PreparedQueryResult result2 = WorldDatabase.Query(stmt);
|
||||
|
||||
if (result2)
|
||||
if (PreparedQueryResult result2 = LoginDatabase.Query(stmt))
|
||||
{
|
||||
Field* fields2 = result2->Fetch();
|
||||
lastIp.append(" (");
|
||||
|
||||
Reference in new issue
Block a user