Skip to content

Commit

Permalink
Fix textdata comments in Undertale/SURVEY_PROGRAM decompilation (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminUrquhart authored Oct 7, 2021
1 parent 4222560 commit c9188a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UndertaleModLib/Decompiler/Decompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3426,7 +3426,7 @@ public static void BuildSubFunctionCache(UndertaleData data)
{
// Find all functions defined in GlobalScripts
// Use the cache so this only gets calculated once
if (!data.GMS2_3 || data.KnownSubFunctions != null)
if (data == null || !data.GMS2_3 || data.KnownSubFunctions != null)
return;
foreach (var func in data.Functions)
{
Expand Down

0 comments on commit c9188a6

Please sign in to comment.