PDA

View Full Version : Fix: Instancing zones with ID above 255


Rocker8956
11-17-2008, 05:37 PM
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

int8 tmp = atoi(row[0]);

To

int32 tmp = atoi(row[0]);

uint16 should work just fine however zoneid is declared as a int32 throughout a lot of the code so