mike:GameState: Changed dofile to love.filesystem.load()() for clarity and compatability

This commit is contained in:
Logen Kain 2017-07-30 21:49:18 -07:00
parent 3828805abb
commit fa1dfa4928

View File

@ -11,7 +11,7 @@ function GameState.load(SAVE_FILE)
-- Pretty sure doing this slash will break it on winblows
-- placeholder is the name of our placeholder variable
-- so we can do things like "actors = GameState.load"
dofile(love.filesystem.getSaveDirectory().. "/" .. SAVE_FILE)
love.filesystem.load(SAVE_FILE)() -- Load and run the file
return placeholder
end