aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/ai-use.cpp4
-rw-r--r--engines/hdb/ai.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/hdb/ai-use.cpp b/engines/hdb/ai-use.cpp
index fa78aed218..4abb1023bb 100644
--- a/engines/hdb/ai-use.cpp
+++ b/engines/hdb/ai-use.cpp
@@ -41,7 +41,7 @@ bool AI::useSwitch2(AIEntity *e, int x, int y, int targetX, int targetY) {
}
// Colored Keycard Switch
-bool AI::useLockedSwitch(AIEntity *e, int x, int y, int targetX, int targetY, int onTile, AIType item, char *keyerror) {
+bool AI::useLockedSwitch(AIEntity *e, int x, int y, int targetX, int targetY, int onTile, AIType item, const char *keyerror) {
warning("STUB: Define useLockedSwitch");
return false;
}
@@ -83,4 +83,4 @@ bool AI::useDoorOpenCloseBot(AIEntity *e, int x, int y) {
return false;
}
-} // End of Namespace \ No newline at end of file
+} // End of Namespace
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h
index 1631a516de..a88a703b45 100644
--- a/engines/hdb/ai.h
+++ b/engines/hdb/ai.h
@@ -913,7 +913,7 @@ private:
bool useSwitch2(AIEntity *e, int x, int y, int targetX, int targetY);
// Colored Keycard Switch
- bool useLockedSwitch(AIEntity *e, int x, int y, int targetX, int targetY, int onTile, AIType item, char *keyerror);
+ bool useLockedSwitch(AIEntity *e, int x, int y, int targetX, int targetY, int onTile, AIType item, const char *keyerror);
bool useLockedSwitchOn(AIEntity *e, int x, int y, int targetX, int targetY, int offTile, AIType item);
// Purple Cell Holder Switch