Permalink
Browse files

Fix enum case not manage in switch

Add NUM_MOVE_COMMANDS case in idAI::Event_RestoreMove().

Signed-off-by: XoD <xoddark@gmail.com>
  • Loading branch information...
1 parent 5478cc0 commit 62fe98fd27fb63c63a82a9bd3aefc22348794985 @xoddark committed Dec 28, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 neo/d3xp/ai/AI_events.cpp
@@ -2181,6 +2181,8 @@ void idAI::Event_RestoreMove( void ) {
case MOVE_WANDER :
WanderAround();
break;
+ case NUM_MOVE_COMMANDS:
+ assert(false);
}
if ( GetMovePos( goalPos ) ) {

0 comments on commit 62fe98f

Please sign in to comment.