aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/package
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword25/package')
-rw-r--r--engines/sword25/package/packagemanager_script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword25/package/packagemanager_script.cpp b/engines/sword25/package/packagemanager_script.cpp
index a7c845d32f..3719593e23 100644
--- a/engines/sword25/package/packagemanager_script.cpp
+++ b/engines/sword25/package/packagemanager_script.cpp
@@ -195,9 +195,9 @@ static int GetFileAsString(lua_State *L) {
BS_PackageManager *pPM = GetPM();
unsigned int FileSize;
- void *FileData = pPM->GetFile(luaL_checkstring(L, 1), &FileSize);
+ char *FileData = (char *)pPM->GetFile(luaL_checkstring(L, 1), &FileSize);
if (FileData) {
- lua_pushlstring(L, static_cast<char *>(FileData), FileSize);
+ lua_pushlstring(L, FileData, FileSize);
delete FileData;
return 1;