From 21f050800b450ce5adfbac8ac5466e38881cabf6 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Fri, 17 Aug 2012 17:08:24 +0100 Subject: [PATCH] Load signs from OPS data --- src/client/GameSave.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/client/GameSave.cpp b/src/client/GameSave.cpp index 002d9556c..4b947644a 100644 --- a/src/client/GameSave.cpp +++ b/src/client/GameSave.cpp @@ -951,6 +951,16 @@ void GameSave::readOPS(char * data, int dataLength) } } } + + if(tempSigns.size()) + { + for (int i = 0; i < tempSigns.size(); i++) + { + if(signs.size() == MAXSIGNS) + break; + signs.push_back(tempSigns[i]); + } + } goto fin; fail: //Clean up everything @@ -1554,7 +1564,7 @@ void GameSave::readPSv(char * data, int dataLength) for (i = 0; i < tempSigns.size(); i++) { - if(i == MAXSIGNS) + if(signs.size() == MAXSIGNS) break; signs.push_back(tempSigns[i]); }