Might be related to #272, but I'm just reporting it to be sure.
Cities: Skylines crashes to desktop when patching a method that returns a struct. I managed to slim down the struct to be completely empty and it still happens. Error disappears when changing the return type of the method to void
To Reproduce
Code that causes exception:
var harmony = new Harmony("boformer.Harmony2Example");
harmony.Patch(typeof(FakeWorkshop).GetMethod("UpdateItem"), new HarmonyMethod(typeof(WorkshopUpdateItemPatch).GetMethod("Prefix")));
public static class WorkshopUpdateItemPatch {
public static void Prefix() {}
}
public class FakeWorkshop {
public FakeUGCHandle UpdateItem() {
return default;
}
}
public struct FakeUGCHandle {}
Describe the bug
Might be related to #272, but I'm just reporting it to be sure.
Cities: Skylines crashes to desktop when patching a method that returns a struct. I managed to slim down the struct to be completely empty and it still happens. Error disappears when changing the return type of the method to void
To Reproduce
Code that causes exception:
Crash Log
Runtime environment (please complete the following information):