1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Fix json parsing from string

This commit is contained in:
Mathieu Schroeter 2018-06-09 16:26:07 +02:00
parent 5c8bd3ac27
commit 02219b26de

View File

@ -122,7 +122,7 @@ ReadConfig ()
Sint64 size = SDL_RWsize (file);
char * buffer = (char *) calloc (sizeof (char), size + 1);
SDL_RWread (file, buffer, size, 1);
nlohmann::json j = buffer;
nlohmann::json j = nlohmann::json::parse (buffer);
SDL_RWclose (file);
free (buffer);