EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   COMMITTED: Bazaar focus effect search fix (https://www.eqemulator.org/forums/showthread.php?t=31804)

wheeljack 08-07-2010 05:11 PM

COMMITTED: Bazaar focus effect search fix
 
This patch fixes a bug where searching for an item with a focus effect in the bazaar always returns 0 results. This bug was caused by the wrong column name being used in the constructed sql statement.

Code:

Index: zone/trading.cpp
===================================================================
--- zone/trading.cpp        (revision 1617)
+++ zone/trading.cpp        (working copy)
@@ -1230,7 +1230,7 @@
                                Search.append(" and items.spellid>=1298 and items.spellid<=1307");
                                break;
                        case 49:
-                                Search.append(" and items.focusid>0");
+                                Search.append(" and items.focuseffect > 0");
                                break;
                        default:
                                sprintf(Tmp, " and items.itemtype=%i", Type);

If PEQ stays down, who knows what other fixes I'll get coded up. :)

Derision 08-08-2010 10:11 AM

Committed in Rev 1618. Thanks :)


All times are GMT -4. The time now is 07:05 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.