Photo of almost identical functions
I am trying to create a separate function for creating a random 2d array map, but I don't understand why GameEngine is able to compile but Engine throws errors when they're identical apart from their names. Engine needs void because it does not return anything, but why does this not apply to GameEngine when it clearly returns nothing aswell?