X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/a0a889ede9c85b8d7b6155a0ce19bcee45c4c654..574d47203e63ac4a85f0d609098118d19e6bbf09:/modules/com/saurik/substrate/MS.cy diff --git a/modules/com/saurik/substrate/MS.cy b/modules/com/saurik/substrate/MS.cy index 2cd98b8..446b906 100644 --- a/modules/com/saurik/substrate/MS.cy +++ b/modules/com/saurik/substrate/MS.cy @@ -61,7 +61,7 @@ exports.getImageByName = MSGetImageByName; exports.findSymbol = MSFindSymbol; exports.hookFunction = function(func, hook, old) { - var type = func.type; + var type = typeid(func); var pointer; if (old == null || typeof old === "undefined")