Skip to content
Snippets Groups Projects
Commit e0006a1e authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Fixed a zero_type bug.

Rev: lib/modules/Remote.pmod/context.pike:1.7
parent 8dce201f
No related branches found
No related tags found
No related merge requests found
......@@ -38,8 +38,8 @@ string id_for(mixed thing)
object object_for(string id)
{
object o;
int destructed = zero_type (o = id2val[id]) != 1;
object o = id2val[id];
int destructed = zero_type (id2val[id]) != 1;
if(o) {
DEBUGMSG("object_for(" + id + ") found locally\n");
return o;
......@@ -65,8 +65,8 @@ object object_for(string id)
object function_for(string id)
{
object o;
if(zero_type (o=id2val[id]) != 1) {
object o = id2val[id];
if(zero_type (id2val[id]) != 1) {
DEBUGMSG("function_for(" + id + ") found " + (o ? "" : "destructed ") + "locally\n");
return o;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment