Skip to content

Commit

Permalink
Fix for segfault in DECLARE
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbrek committed Nov 2, 2023
1 parent 87ac3d3 commit 1c8affd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion game.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Game;
#include "object.h"
#include "events.h"

#define CURRENT_ATL_VER MAKE_ATL_VER(5, 2, 5)
#define CURRENT_ATL_VER MAKE_ATL_VER(5, 2, 6)

class OrdersCheck
{
Expand Down
2 changes: 1 addition & 1 deletion parseorders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1924,7 +1924,7 @@ void Game::ProcessDeclareOrder(Faction *f, AString *o, OrdersCheck *pCheck)
} else {
fac = token->strict_value();
if (fac == -1) {
f->Error(AString("DECLARE: Non-existent faction."));
ParseError(pCheck, 0, f, AString("DECLARE: Non-existent faction."));
return;
}
}
Expand Down

0 comments on commit 1c8affd

Please sign in to comment.