Fix global name.

develop
Japa 2018-02-04 10:21:28 +05:30
parent 38140fb450
commit c621a29fe3
2 changed files with 3 additions and 3 deletions

@ -184,7 +184,7 @@ void CopyItem(RemoteFortressReader::Item * NetItem, df::item * DfItem)
VIRTUAL_CAST_VAR(statue, df::item_statuest, DfItem); VIRTUAL_CAST_VAR(statue, df::item_statuest, DfItem);
df::art_image_chunk * chunk = NULL; df::art_image_chunk * chunk = NULL;
GET_ART_IMAGE_CHUNK GetArtImageChunk = reinterpret_cast<GET_ART_IMAGE_CHUNK>(Core::getInstance().vinfo->getAddress("rfr_get_art_image")); GET_ART_IMAGE_CHUNK GetArtImageChunk = reinterpret_cast<GET_ART_IMAGE_CHUNK>(Core::getInstance().vinfo->getAddress("get_art_image_chunk"));
if (GetArtImageChunk) if (GetArtImageChunk)
{ {
chunk = GetArtImageChunk(&(world->art_image_chunks), statue->image.id); chunk = GetArtImageChunk(&(world->art_image_chunks), statue->image.id);

@ -189,7 +189,7 @@ command_result loadArtImageChunk(color_ostream &out, vector <string> & parameter
return CR_WRONG_USAGE; return CR_WRONG_USAGE;
GET_ART_IMAGE_CHUNK GetArtImageChunk = reinterpret_cast<GET_ART_IMAGE_CHUNK>(Core::getInstance().vinfo->getAddress("rfr_get_art_image")); GET_ART_IMAGE_CHUNK GetArtImageChunk = reinterpret_cast<GET_ART_IMAGE_CHUNK>(Core::getInstance().vinfo->getAddress("get_art_image_chunk"));
if (GetArtImageChunk) if (GetArtImageChunk)
{ {
int index = atoi(parameters[0].c_str()); int index = atoi(parameters[0].c_str());
@ -1514,7 +1514,7 @@ static command_result GetBlockList(color_ostream &stream, const BlockRequest *in
continue; continue;
df::art_image_chunk * chunk = NULL; df::art_image_chunk * chunk = NULL;
GET_ART_IMAGE_CHUNK GetArtImageChunk = reinterpret_cast<GET_ART_IMAGE_CHUNK>(Core::getInstance().vinfo->getAddress("rfr_get_art_image")); GET_ART_IMAGE_CHUNK GetArtImageChunk = reinterpret_cast<GET_ART_IMAGE_CHUNK>(Core::getInstance().vinfo->getAddress("get_art_image_chunk"));
if (GetArtImageChunk) if (GetArtImageChunk)
{ {
chunk = GetArtImageChunk(&(world->art_image_chunks), engraving->art_id); chunk = GetArtImageChunk(&(world->art_image_chunks), engraving->art_id);