View Single Post
  #1  
Old 11-17-2008, 05:37 PM
Rocker8956
Hill Giant
 
Join Date: Sep 2007
Posts: 117
Default 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
Reply With Quote