ALiwoto / LTW-client

Last Testament Of Wanderers (LTW) Game Client
GNU General Public License v2.0
8 stars 1 forks source link

StrongString operators bug #6

Closed ALiwoto closed 3 years ago

ALiwoto commented 3 years ago

they won't check if left or right is null or not. they will just call GetValue() directly, so it will result in a NullRefrenceException

public static StrongString operator +(StrongString left, StrongString right)
    {
        return left.GetValue() + right.GetValue();
    }
ALiwoto commented 3 years ago

It's almost fixed, but needs more tests, since Append overloads are using it