]> git.sesse.net Git - cubemap/commitdiff
Fix a bug introduced with the move of read_tempfile() to util.cpp.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 13 Apr 2013 17:03:54 +0000 (19:03 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 13 Apr 2013 17:03:54 +0000 (19:03 +0200)
main.cpp

index e48bdf1f7761c2933d8279810602cbccd2a724ca..67c731dbb2c657ef1f586b1e10a6ead60b93d4c5 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -272,7 +272,7 @@ start:
        if (state_fd != -1) {
                fprintf(stderr, "Deserializing state from previous process... ");
                string serialized;
-               if (!read_tempfile(atoi(argv[3]), &serialized)) {
+               if (!read_tempfile(state_fd, &serialized)) {
                        exit(1);
                }
                if (!loaded_state.ParseFromString(serialized)) {