Skip to content

Commit fa036b5

Browse files
authored
Merge pull request #117 from cortex-command-community/codesequence-error-secretcodeEntry
Missing codeSequence table
2 parents 481892c + 213f94d commit fa036b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Data/Base.rte/Scripts/Shared/SecretCodeEntry.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ function SecretCodeEntry.Setup(callbackFunction, callbackSelfObject, codeSequenc
5959
secretCodeEntryData.callbackSelfObject = callbackSelfObject;
6060
secretCodeEntryData.codeSequenceOrCodeType = codeSequenceOrCodeType;
6161
secretCodeEntryData.sequenceLength = sequenceLength;
62+
if type(codeSequenceOrCodeType) == "table" then
63+
secretCodeEntryData.codeSequence = codeSequenceOrCodeType;
64+
end
6265
secretCodeEntryData.firstEntrySoundContainer = firstEntrySoundContainer or SecretCodeEntry.defaultFirstEntrySoundContainer;
6366
secretCodeEntryData.correctEntrySoundContainer = correctEntrySoundContainer or SecretCodeEntry.defaultCorrectEntrySoundContainer;
6467
secretCodeEntryData.incorrectEntrySoundContainer = incorrectEntrySoundContainer or SecretCodeEntry.defaultIncorrectEntrySoundContainer;

0 commit comments

Comments
 (0)