diff --git a/src/libpython/base.h b/src/libpython/base.h index 67a2eb42..c39e5dff 100644 --- a/src/libpython/base.h +++ b/src/libpython/base.h @@ -124,7 +124,7 @@ public: if (i < 0 || i >= Size) { SLog(EError, "Index %i is out of range!", i); - return 0.0f; + return (Scalar) 0; } return value[i]; }