1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00
- fixed crash at campaigns loading
- minor fixes
This commit is contained in:
Ivan Savenko
2011-11-25 19:41:23 +00:00
parent a62634cf94
commit 29f42aa873
8 changed files with 38 additions and 43 deletions

View File

@@ -28,6 +28,9 @@ JsonNode::JsonNode(std::string filename):
type(DATA_NULL)
{
FILE * file = fopen(filename.c_str(), "rb");
if (!file)
return;
fseek(file, 0, SEEK_END);
size_t datasize = ftell(file);
fseek(file, 0, SEEK_SET);