From e1542df90ccde91e2f7fded2d5378d77b1f9ea84 Mon Sep 17 00:00:00 2001 From: thenecromancer Date: Thu, 11 Mar 2010 20:51:31 +0100 Subject: Convert some C style casts to new functions --HG-- branch : trunk --- src/game/Level1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/Level1.cpp') diff --git a/src/game/Level1.cpp b/src/game/Level1.cpp index 9aa1d3eca2a..360810801a1 100644 --- a/src/game/Level1.cpp +++ b/src/game/Level1.cpp @@ -2110,7 +2110,7 @@ bool ChatHandler::HandleModifyBitCommand(const char* args) } // check online security - if (unit->GetTypeId() == TYPEID_PLAYER && HasLowerSecurity((Player *)unit, 0)) + if (unit->GetTypeId() == TYPEID_PLAYER && HasLowerSecurity(unit->ToPlayer(), 0)) return false; char* pField = strtok((char*)args, " "); -- cgit v1.2.3