Commit 650fef3
committed
fix: Handle unsafe pointer access which breaks Welcome to Cuba, or any custom location
Existing user progression data not having a newly added location (Cuba, ToTT) will cause the game to hang up on mission end due to an invalid pointer access trying to set PreviouslySeenXP of null. Added error check to catch this and fill in default progression data in this case, so custom locations like Cuba can be completed without locking up the game.1 parent 20a5798 commit 650fef3
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
882 | 883 | | |
883 | 884 | | |
884 | 885 | | |
| 886 | + | |
885 | 887 | | |
886 | 888 | | |
887 | | - | |
888 | | - | |
889 | | - | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
890 | 900 | | |
891 | 901 | | |
892 | 902 | | |
| |||
0 commit comments