Skip to content

Commit

Permalink
Merge pull request #396 from doug1234/master
Browse files Browse the repository at this point in the history
Fix half elf bug
  • Loading branch information
doug1234 authored Jun 9, 2020
2 parents 5195adc + dc23499 commit a60c291
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TemplePlus/python/python_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,7 @@ static PyObject* PyObjHandle_ConditionsGet(PyObject* obj, PyObject* args) {
PyTuple_SET_ITEM(tuple, 0, cname);
if (node->condStruct->numArgs) {
auto tupleArgs = PyTuple_New(node->condStruct->numArgs);
for (auto i = 0; i < node->condStruct->numArgs; i++)
for (unsigned int i = 0; i < node->condStruct->numArgs; i++)
{
PyTuple_SET_ITEM(tupleArgs, i, PyInt_FromSize_t(node->args[i]));
}
Expand Down Expand Up @@ -2451,7 +2451,7 @@ static PyObject* GetCharacterClassesSet(Filter filter, PyObject* obj, PyObject*
}

auto result = PyTuple_New(classes.size());
for (auto i = 0; i < classes.size(); i++) {
for (size_t i = 0; i < classes.size(); i++) {
PyTuple_SET_ITEM(result, i, PyInt_FromLong(classes[i]));
}

Expand Down
Binary file modified tpdata/co8infra.dat
Binary file not shown.
Binary file modified tpdata/kotbfixes.dat
Binary file not shown.
Binary file modified tpdata/tpgamefiles.dat
Binary file not shown.
1 change: 1 addition & 0 deletions tpdatasrc/tpgamefiles/scr/tpModifiers/half_elf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from toee import *
import tpdp
import race_utils
import char_class_utils

###################################################

Expand Down

0 comments on commit a60c291

Please sign in to comment.