From 9637dc9ef02a971fc80ecbda585297076da2fc96 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Fri, 19 Jan 2024 22:44:57 +0800 Subject: [PATCH] ... --- src/linalg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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){