From 062dd0e24c283f210216ede06bbde0ed72c7ed25 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 13 May 2010 10:14:29 +0000 Subject: (svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int --- src/ai/ai_instance.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/ai/ai_instance.cpp') diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp index 693d76c3a..4a0924995 100644 --- a/src/ai/ai_instance.cpp +++ b/src/ai/ai_instance.cpp @@ -460,9 +460,7 @@ static const SaveLoad _ai_byte[] = { SLE_END() }; -enum { - AISAVE_MAX_DEPTH = 25, ///< The maximum recursive depth for items stored in the savegame. -}; +static const uint AISAVE_MAX_DEPTH = 25; ///< The maximum recursive depth for items stored in the savegame. /* static */ bool AIInstance::SaveObject(HSQUIRRELVM vm, SQInteger index, int max_depth, bool test) { -- cgit v1.2.3-54-g00ecf