Skip to content

Commit a8ed769

Browse files
committed
Fix CallRemoteFunction including format as part of the arguments
ie putting format as "s" format inside the format... confusing I know
1 parent a2586b6 commit a8ed769

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bindings/samp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5606,14 +5606,14 @@ WITH_GIL(pysamp_callremotefunction, PyObject *self, PyObject *args)
56065606
return NULL;
56075607
}
56085608

5609-
std::string format = ParamConverter::get_format(args);
5610-
56115609
// arguments = args[0], format, args[1:]
56125610
PyObject *one = PyLong_FromLong(1);
56135611
PyObject *slice = PySlice_New(one, NULL, NULL);
56145612
Py_DECREF(one);
56155613
PyObject *tail = PyObject_GetItem(args, slice);
56165614
Py_DECREF(slice);
5615+
5616+
std::string format = ParamConverter::get_format(tail);
56175617
arguments = Py_BuildValue("ssO", name, format.c_str(), tail);
56185618
Py_DECREF(tail);
56195619

0 commit comments

Comments
 (0)