Skip to content

Commit

Permalink
Replaced remaining "pointers" with "pointer" in the EXEData procedure…
Browse files Browse the repository at this point in the history
….. Follow-up for last commit.
  • Loading branch information
michael-fadely committed Feb 12, 2015
1 parent b56441c commit 80bb922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SADXModLoader/dllmain.cpp
Expand Up @@ -949,15 +949,15 @@ static void __cdecl InitMods(void)
string type = group->getString("type");
if (type == "landtable")
{
if (!group->hasKeyNonEmpty("filename") || !group->hasKeyNonEmpty("pointers")) continue;
if (!group->hasKeyNonEmpty("filename") || !group->hasKeyNonEmpty("pointer")) continue;
LandTable *landtable = (new LandTableInfo(mod_dir + L'\\' + group->getWString("filename")))->getlandtable();
vector<string> ptrs = split(group->getString("pointer"), ',');
for (unsigned int i = 0; i < ptrs.size(); i++)
*(LandTable **)(strtol(ptrs[i].c_str(), nullptr, 16) + 0x400000) = landtable;
}
else if (type == "model")
{
if (!group->hasKeyNonEmpty("filename") || !group->hasKeyNonEmpty("pointers")) continue;
if (!group->hasKeyNonEmpty("filename") || !group->hasKeyNonEmpty("pointer")) continue;
NJS_OBJECT *model = (new ModelInfo(mod_dir + L'\\' + group->getWString("filename")))->getmodel();
vector<string> ptrs = split(group->getString("pointer"), ',');
for (unsigned int i = 0; i < ptrs.size(); i++)
Expand Down

0 comments on commit 80bb922

Please sign in to comment.