2
0
David Rose 16 жил өмнө
parent
commit
19e866c803

+ 2 - 1
direct/src/showbase/extend_frozen.c

@@ -61,6 +61,7 @@ py_extend_frozen_modules(PyObject *self, PyObject *args) {
   int num_elements;
   int num_elements;
   int i;
   int i;
   struct _frozen *new_modules;
   struct _frozen *new_modules;
+  int total_count;
 
 
   if (!PyArg_ParseTuple(args, "O", &list)) {
   if (!PyArg_ParseTuple(args, "O", &list)) {
     return NULL;
     return NULL;
@@ -98,7 +99,7 @@ py_extend_frozen_modules(PyObject *self, PyObject *args) {
 
 
   Py_DECREF(list);
   Py_DECREF(list);
 
 
-  int total_count = extend_frozen_modules(new_modules, num_elements);
+  total_count = extend_frozen_modules(new_modules, num_elements);
   free(new_modules);
   free(new_modules);
   
   
   return Py_BuildValue("i", total_count);
   return Py_BuildValue("i", total_count);