aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2015-01-04 21:06:49 +0100
committerEugene Sandulenko2015-01-04 21:06:49 +0100
commitce45caaf83cae5990416aa2d6e833f309f7ce5c0 (patch)
treeec00454e697fd176d89378b686c14c159f3d0a65
parent7865c7821140a2b83a1473c66e90644cbf39a2c9 (diff)
downloadscummvm-rg350-ce45caaf83cae5990416aa2d6e833f309f7ce5c0.tar.gz
scummvm-rg350-ce45caaf83cae5990416aa2d6e833f309f7ce5c0.tar.bz2
scummvm-rg350-ce45caaf83cae5990416aa2d6e833f309f7ce5c0.zip
SWORD25: Fix warning
-rw-r--r--engines/sword25/util/lua_persist.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/sword25/util/lua_persist.cpp b/engines/sword25/util/lua_persist.cpp
index 6fe88fe9a3..03f305b2c5 100644
--- a/engines/sword25/util/lua_persist.cpp
+++ b/engines/sword25/util/lua_persist.cpp
@@ -645,8 +645,7 @@ static void persistProto(SerializationInfo *info) {
// Serialize inner Proto refs
info->writeStream->writeSint32LE(proto->sizep);
- for (int i = 0; i < proto->sizep; ++i)
- {
+ for (int i = 0; i < proto->sizep; ++i) {
pushProto(info->luaState, proto->p[i]);
// >>>>> permTbl indexTbl ...... proto subProto */
@@ -668,8 +667,7 @@ static void persistProto(SerializationInfo *info) {
// Serialize upvalue names
info->writeStream->writeSint32LE(proto->sizeupvalues);
- for (int i = 0; i < proto->sizeupvalues; ++i)
- {
+ for (int i = 0; i < proto->sizeupvalues; ++i) {
pushString(info->luaState, proto->upvalues[i]);
// >>>>> permTbl indexTbl ...... proto str
@@ -710,7 +708,7 @@ static void persistProto(SerializationInfo *info) {
info->writeStream->writeSint32LE(proto->sizelineinfo);
if (proto->sizelineinfo) {
- uint32 len = static_cast<uint32>(sizeof(int) * proto->sizelineinfo);
+ len = static_cast<uint32>(sizeof(int) * proto->sizelineinfo);
info->writeStream->write(proto->lineinfo, len);
}