I've been working on a little game and it is coming a long nicely but I've come across a crash that I can not seem to fix, or find a reason for. I know the exact offending code but I just don't know why it is crashing. The bit of code is:
Code: Select all
for p=1, # do
for o=1, # do
self.terrainMap[o][p] = terrainChunk:new(256,512,512,512)
end
end
Each "terrainChunk" is an object that is essentially a 2d table that consists of a bunch of individual square objects, so this "terrainMap" would be a table of tables of objects. Could there be some sort of memory issues or something? Does lua or love have some sort of issue on 3d tables? or I guess in this case it's 4d?
If you need any other information or want to see some other code let me know.
Thank you for your time!