[4.2.4] Calling String.Split() on a string CVar crashes.

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
Guest

[4.2.4] Calling String.Split() on a string CVar crashes.

Post by Guest »

Example: https://drive.google.com/open?id=1QCoMR ... DBO1dIhu5e

Pretty much what says on the tin. Just start a new game to trigger. The code that doesn't crash is commented out under the crashy bit. CrashReport.zip inside the download.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: [4.2.4] Calling String.Split() on a string CVar crashes.

Post by _mental_ »

In this PR I managed to achieve identical code generated for the following two functions.

Code: Select all

int Implicit()
{
    return string_cvar.ToInt();
}

int Explicit()
{
    string temp = string_cvar;
    return temp.ToInt();
}
EDIT: Merged in a05a5a8.
Post Reply

Return to “Closed Bugs [GZDoom]”