-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
attempt to fix extractors and core #57
base: master
Are you sure you want to change the base?
Conversation
@i-am-fyre @Meltie2013 - I'd appreciate some eyes on this build !!
|
This is the partner PR to this commit: 1ba32d2 |
Actually, it could be related to this: |
char* fileName = new char[pathLen]; | ||
snprintf(fileName, pathLen, (sWorld.GetDataPath() + "mmaps/%03i.mmap").c_str(), mapId); | ||
snprintf(fileName, pathLen, (sWorld.GetDataPath() + "mmaps/%04i.mmap").c_str(), mapId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change causes Segmentation Fault because the format is out of bounds
@@ -155,7 +155,7 @@ bool ChatHandler::HandleMmapLocCommand(char* /*args*/) | |||
int32 gx = 32 - player->GetPositionX() / SIZE_OF_GRIDS; | |||
int32 gy = 32 - player->GetPositionY() / SIZE_OF_GRIDS; | |||
|
|||
PSendSysMessage("%03u%02i%02i.mmtile", player->GetMapId(), gy, gx); | |||
PSendSysMessage("%04u%02i%02i.mmtile", player->GetMapId(), gy, gx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this chage causes egmentation fault due to the format on this case is out of bounds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes that you propose are only aplicable for Map Generator
This change is