Skip to content

Commit

Permalink
fixed some return val
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimedErwin committed Dec 24, 2024
1 parent 85cc39c commit 5b6edff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/python.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ static bool py_cls(int argc, py_Ref argv)

color = py_toint(py_arg(0));
core->api.cls(tic, color);
py_assign(py_retval(), py_None());
return true;
}

Expand Down Expand Up @@ -172,6 +173,7 @@ static bool py_spr(int argc, py_Ref argv)
return TypeError("The given argument is not int or list");

core->api.spr(tic, spr_id, x, y, w, h, colors, color_count, scale, flip, rotate);
py_assign(py_retval(), py_None());
return true;
}

Expand Down

0 comments on commit 5b6edff

Please sign in to comment.