diff --git a/src/linalg.cpp b/src/linalg.cpp index 6e42d02c..30e3b074 100644 --- a/src/linalg.cpp +++ b/src/linalg.cpp @@ -250,7 +250,7 @@ static Vec2 SmoothDamp(Vec2 current, Vec2 target, PyVec2& currentVelocity, float return vm->heap.gcnew(PK_OBJ_GET(Type, args[0]), mat); } vm->TypeError(fmt("Mat3x3.__new__ takes 0 or 1 or 9 arguments, got ", args.size()-1)); - PK_UNREACHABLE(); + return vm->None; }); vm->bind_method<1>(type, "copy_", [](VM* vm, ArgsView args){