From 3be9cace41bcef4b7bf55bffea5d3596bd588e7e Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Thu, 25 Mar 2010 23:45:27 -0600 Subject: Replace most dynamic_casts with static_casts The remaining instances can't easily or safely be changed as the classes involved don't have type information like Being does. Reviewed-by: Freeyorp --- src/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 185fcb03..e0aa7313 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -879,7 +879,7 @@ void Game::handleInput() if (target) { if (target->getType() == Being::NPC) - dynamic_cast(target)->talk(); + static_cast(target)->talk(); } } -- cgit v1.2.3-60-g2f50