Jump to content

Divide-by-zero caused CTD


Recommended Posts

This is an informational post only

I have always thought and said that a mod could not easily cause a CTD.

Well, I was wrong.

I got a message about a CTD when QuizTech Aeropack & GPOSpeedFuelPump were used together with a couple of parts.  I was able to determine that it wasn't Quiztech, and posted a message in the GPO thread.

This evening, i got the itch to look at this, I was curious what could be going on.  The code was pretty simple.

It turned out that the part in question was both an engine AND a fuel tank, and GPO was doing a divide-by-zero, which was causing instant CTD and CrashToSpace.

For some reason, I thought that C# was a bit smarter than that.  Obviously not.

I submitted a PR to the maintainer with the fix, hope he gets it out soon

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...