diff --git a/Source/Modules/c.cxx b/Source/Modules/c.cxx index d8979c9fd..6a5c1c3cb 100644 --- a/Source/Modules/c.cxx +++ b/Source/Modules/c.cxx @@ -1582,7 +1582,7 @@ public: // Special case, just leave it unchanged. typestr = NewString("SwigObj"); } else { - typestr = getClassProxyName(classnametype); + typestr = getClassProxyName(btype); if (!typestr) { if (SwigType_isbuiltin(btype)) { // This should work just as well in C without any changes.