EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   Fix: Instancing zones with ID above 255 (https://www.eqemulator.org/forums/showthread.php?t=26795)

Rocker8956 11-17-2008 05:37 PM

Fix: Instancing zones with ID above 255
 
This should fix the problem people are having were any zone with an ID above 255 cannot be instanced. Well, it is instanced but not the right zone since the number raps back around after 255 :)

Database.cpp line 1235 (inside GetZoneName)

Change

Code:

int8 tmp = atoi(row[0]);
To

Code:

int32 tmp = atoi(row[0]);
uint16 should work just fine however zoneid is declared as a int32 throughout a lot of the code so


All times are GMT -4. The time now is 12:42 PM.

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