shlifedev / among-us-memory

my among us hacking utility
196 stars 57 forks source link

Code crashes when not in a game #47

Closed MegaBloopy closed 4 years ago

MegaBloopy commented 4 years ago

If I make code to set the kill cooldown to 0 while a checkbox is checked if I am not in a game it crashes with an error code of something related to the value is set to nil at this line "var data = (T)Marshal.PtrToStructure(gcHandle.AddrOfPinnedObject(), typeof(T));" (Saying T is not set) I checked don't break on this error so I don't have the exact error but that is as close as I remember

MegaBloopy commented 4 years ago

Its because I was using a while loop and not freezing the value