aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level1.cpp
diff options
context:
space:
mode:
authorthenecromancer <none@none>2010-03-11 20:51:31 +0100
committerthenecromancer <none@none>2010-03-11 20:51:31 +0100
commite1542df90ccde91e2f7fded2d5378d77b1f9ea84 (patch)
treea2d4cfaa4ede97263b30ce11c8ff1450361de846 /src/game/Level1.cpp
parent02a9cd6a43a18f2350801bd9473c2346b36b0575 (diff)
Convert some C style casts to new functions
--HG-- branch : trunk
Diffstat (limited to 'src/game/Level1.cpp')
-rw-r--r--src/game/Level1.cpp2
1 files changed, 1 insertions, 1 deletions
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, " ");