diff --git a/src/b_game.cpp b/src/b_game.cpp index 4300e0ada..661d09c6e 100644 --- a/src/b_game.cpp +++ b/src/b_game.cpp @@ -534,7 +534,7 @@ bool FCajunMaster::LoadBots () } if (!sc.OpenFile(tmp)) { - Printf("Unable to open %s. So no bots\n"); + Printf("Unable to open %s. So no bots\n", tmp.GetChars()); return false; } @@ -665,4 +665,4 @@ DEFINE_ACTION_FUNCTION(FLevelLocals, RemoveAllBots) PARAM_BOOL(fromlist); bglobal.RemoveAllBots(fromlist); return 0; -} \ No newline at end of file +} diff --git a/src/g_game.cpp b/src/g_game.cpp index f56bdac8e..0adfa2fc9 100644 --- a/src/g_game.cpp +++ b/src/g_game.cpp @@ -2978,7 +2978,7 @@ bool G_CheckDemoStatus (void) bool saved = false; if (fw != nullptr) { - auto size = long(demo_p - demobuffer); + const size_t size = demo_p - demobuffer; saved = fw->Write(demobuffer, size) == size; delete fw; if (!saved) remove(demoname);