aboutsummaryrefslogtreecommitdiff
path: root/src/receiving.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/receiving.cc')
-rw-r--r--src/receiving.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/receiving.cc b/src/receiving.cc
index 6cf6609..ddaee44 100644
--- a/src/receiving.cc
+++ b/src/receiving.cc
@@ -646,7 +646,7 @@ void CEditText(TConnection *Connection, TReadBuffer *Buffer){
return;
}
- Object Obj = Buffer->readQuad();
+ Object Obj = Object(Buffer->readQuad());
if(!Obj.exists()){
SendResult(Connection, NOTACCESSIBLE);
return;
@@ -697,7 +697,7 @@ void CEditList(TConnection *Connection, TReadBuffer *Buffer){
}else if(Type == SUBOWNERLIST){
ChangeSubowners((uint16)ID, Player, Text);
}else if(Type == DOORLIST){
- Object Door = ID;
+ Object Door = Object(ID);
if(!Door.exists()){
SendResult(Connection, NOTACCESSIBLE);
return;