commit c150deb3687c9fec3281418b98894e59ebe6fc2a
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat Jul 28 15:29:54 2018 +0300
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Sat Jul 28 15:29:54 2018 +0300
doom: Fix constness issue in G_DoPlayDemo
---
src/doom/g_game.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/doom/g_game.c b/src/doom/g_game.c
index ce41df86..7da1576f 100644
--- a/src/doom/g_game.c
+++ b/src/doom/g_game.c
@@ -2186,14 +2186,14 @@ void G_DoPlayDemo (void)
}
else if (demoversion != G_VanillaVersionCode())
{
- char *message = "Demo is from a different game version!\n"
- "(read %i, should be %i)\n"
- "\n"
- "*** You may need to upgrade your version "
- "of Doom to v1.9. ***\n"
- " See: https://www.doomworld.com/classicdoom"
- "/info/patches.php\n"
- " This appears to be %s.";
+ const char *message = "Demo is from a different game version!\n"
+ "(read %i, should be %i)\n"
+ "\n"
+ "*** You may need to upgrade your version "
+ "of Doom to v1.9. ***\n"
+ " See: https://www.doomworld.com/classicdoom"
+ "/info/patches.php\n"
+ " This appears to be %s.";
I_Error(message, demoversion, G_VanillaVersionCode(),
DemoVersionDescription(demoversion));