aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/script
diff options
context:
space:
mode:
authorEugene Sandulenko2010-09-02 11:54:44 +0000
committerEugene Sandulenko2010-10-12 23:26:48 +0000
commit0cdb2ded85d17150cb108a5d63dd8957c29af2a5 (patch)
tree8d3d48b7ad1c0fd1888b90a8ad2e8b86de0393b5 /engines/sword25/script
parent56878b0e62d65aae1b0eba76a2ca2553fbaf1288 (diff)
downloadscummvm-rg350-0cdb2ded85d17150cb108a5d63dd8957c29af2a5.tar.gz
scummvm-rg350-0cdb2ded85d17150cb108a5d63dd8957c29af2a5.tar.bz2
scummvm-rg350-0cdb2ded85d17150cb108a5d63dd8957c29af2a5.zip
SWORD25: unsigned char -> byte
svn-id: r53308
Diffstat (limited to 'engines/sword25/script')
-rw-r--r--engines/sword25/script/luascript.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sword25/script/luascript.cpp b/engines/sword25/script/luascript.cpp
index c6508c325f..ce63a1512d 100644
--- a/engines/sword25/script/luascript.cpp
+++ b/engines/sword25/script/luascript.cpp
@@ -439,8 +439,8 @@ bool PushPermanentsTable(lua_State *L, PERMANENT_TABLE_TYPE TableType) {
namespace {
int Chunkwriter(lua_State *L, const void *p, size_t sz, void *ud) {
- Common::Array<unsigned char> & chunkData = *reinterpret_cast<Common::Array<unsigned char> * >(ud);
- const unsigned char *buffer = reinterpret_cast<const unsigned char *>(p);
+ Common::Array<byte> & chunkData = *reinterpret_cast<Common::Array<byte> * >(ud);
+ const byte *buffer = reinterpret_cast<const byte *>(p);
while (sz--) chunkData.push_back(*buffer++) ;
@@ -461,7 +461,7 @@ bool LuaScriptEngine::Persist(OutputPersistenceBlock &Writer) {
lua_getglobal(m_State, "_G");
// Lua persists and stores the data in a Common::Array
- Common::Array<unsigned char> chunkData;
+ Common::Array<byte> chunkData;
pluto_persist(m_State, Chunkwriter, &chunkData);
// Persistenzdaten in den Writer schreiben.
@@ -569,7 +569,7 @@ bool LuaScriptEngine::Unpersist(InputPersistenceBlock &Reader) {
ClearGlobalTable(m_State, ClearExceptionsSecondPass);
// Persisted Lua data
- Common::Array<unsigned char> chunkData;
+ Common::Array<byte> chunkData;
Reader.Read(chunkData);
// Chunk-Reader initialisation. It is used with pluto_unpersist to restore read data