You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Message: Preloader] BepInEx 6.0.0-be.688 - Withering Rooms
[Message: Preloader] Built from commit 4901521
Create a KeyValuePair value.
Read its key/value - everything is fine.
Add the value to the List.
Read the value from the list - we get a garbage value in the key/value.
Same thing if you try to change an existing value in the list.
Steps to reproduce
Code:
List<KeyValuePair<int, string>> list = new();
var item = new KeyValuePair<int, string>(0, "First");
list.Add(item);
Debug.Log("Item is: " + item.Key + " - " + item.Value);
item = new KeyValuePair<int, string>(1, "Second");
list.Add(item);
Debug.Log("Item is: " + item.Key + " - " + item.Value);
foreach (KeyValuePair<int, string> keyValue in list)
{
Debug.Log("KeyValue is: " + keyValue.Key + " - " + keyValue.Value);
}
Result:
Item is: 0 - First
Item is: 1 - Second
KeyValue is: -2110181048 -
KeyValue is: -2110181048 -
What happened?
Create a KeyValuePair value.
Read its key/value - everything is fine.
Add the value to the List.
Read the value from the list - we get a garbage value in the key/value.
Same thing if you try to change an existing value in the list.
Steps to reproduce
Code:
Result:
BepInEx Distribution
Bleeding Edge from BepisBuilds
Log outputs
No response
Environment
The text was updated successfully, but these errors were encountered: