Fixed bug that didn't allow for more than 1 function to be declared

This commit is contained in:
Lukasz Baldyga committed 2020-12-04 17:10:08 +00:00
1 parent 12b889a3e4
commit 81b0335555
1 file changed
+1
@@ -347,6 +347,7 @@ namespace Advanced_Software_Engineering {
if (currentChunk == null) throw new Exception("Cannot end at root level"); //Todo, describe better if (currentChunk == null) throw new Exception("Cannot end at root level"); //Todo, describe better
verbChunks.Remove(currentChunk); verbChunks.Remove(currentChunk);
chunkDepth = verbChunks.Count - 1; chunkDepth = verbChunks.Count - 1;
if (chunkDepth == 0) drawer.verbChunkGeneratingMethod = false;
tmpVerb = currentChunk; tmpVerb = currentChunk;
currentChunk = verbChunks[chunkDepth]; currentChunk = verbChunks[chunkDepth];
rootValueStorage.DecreaseStack(); rootValueStorage.DecreaseStack();